From 9150f3b6ff36e0a836d003f58f5c4915ce3eab8e Mon Sep 17 00:00:00 2001 From: Hemna Date: Sun, 10 Oct 2021 14:50:04 -0400 Subject: [PATCH] Only call stop_threads if it exists --- aprsd/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aprsd/plugin.py b/aprsd/plugin.py index a141ffe..751b97b 100644 --- a/aprsd/plugin.py +++ b/aprsd/plugin.py @@ -471,7 +471,8 @@ class PluginManager: """Stop all threads created by all plugins.""" with self.lock: for p in self.get_plugins(): - p.stop_threads() + if hasattr(p, "stop_threads"): + p.stop_threads() def register_msg(self, obj): """Register the plugin."""