From 7e6dffb34bfca01f1691b3ee8421a03a655c5e2c Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 8 Sep 2021 13:44:20 -0400 Subject: [PATCH] Ensure plugin threads are valid This patch makes sure that the plugin threads returned from create_threads is somewhat valid --- aprsd/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aprsd/plugin.py b/aprsd/plugin.py index ebf160c..a116a09 100644 --- a/aprsd/plugin.py +++ b/aprsd/plugin.py @@ -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()