mirror of
https://github.com/craigerl/aprsd.git
synced 2025-08-03 05:52:26 -04:00
Only call stop_threads if it exists
This commit is contained in:
parent
278bb6e882
commit
9150f3b6ff
@ -471,6 +471,7 @@ class PluginManager:
|
|||||||
"""Stop all threads created by all plugins."""
|
"""Stop all threads created by all plugins."""
|
||||||
with self.lock:
|
with self.lock:
|
||||||
for p in self.get_plugins():
|
for p in self.get_plugins():
|
||||||
|
if hasattr(p, "stop_threads"):
|
||||||
p.stop_threads()
|
p.stop_threads()
|
||||||
|
|
||||||
def register_msg(self, obj):
|
def register_msg(self, obj):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user