diff --git a/platypush/plugins/__init__.py b/platypush/plugins/__init__.py index fe9410fd2..9aabdadeb 100644 --- a/platypush/plugins/__init__.py +++ b/platypush/plugins/__init__.py @@ -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 '