Double-check if self._thread != None on stop on the ntfy thread
Race conditions may occur here
This commit is contained in:
parent
341e749d23
commit
0e56d0fff6
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ class RunnablePlugin(Plugin):
|
|||
try:
|
||||
if self._thread:
|
||||
self._thread.join(timeout=self._stop_timeout)
|
||||
if self._thread.is_alive():
|
||||
if self._thread and self._thread.is_alive():
|
||||
self.logger.warning(
|
||||
f'Timeout (seconds={self._stop_timeout}) on '
|
||||
'exit for the plugin '
|
||||
|
|
Loading…
Reference in a new issue