mirror of
https://github.com/craigerl/aprsd.git
synced 2026-06-19 14:18:59 -04:00
Only call stop_threads if it exists
This commit is contained in:
+2
-1
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user