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
1 changed files with 3 additions and 1 deletions

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()