1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-04-13 06:58:30 -04:00

Ensure plugin threads are valid

This patch makes sure that the plugin threads returned from
create_threads is somewhat valid
This commit is contained in:
Hemna 2021-09-08 13:44:20 -04:00
parent 605911cb84
commit 7e6dffb34b

View File

@ -60,7 +60,9 @@ class APRSDPluginBase(metaclass=abc.ABCMeta):
self.config = config
self.message_counter = 0
self.setup()
self.threads = self.create_threads()
threads = self.create_threads()
if threads:
self.threads = threads
if self.threads:
self.start_threads()