added timout for email notification thread joinging

pull/783/head
Madis Kaal 2023-07-03 17:06:26 +03:00
rodzic 0464b26add
commit b7d69325ac
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -347,7 +347,9 @@ class EmailNotification(object):
self.input_processing_running = False
if self.input_thread is not None:
self.input_thread.join()
self.input_thread.join(60)
if self.input_thread.is_alive():
self.log_error("email notification input thread failed to join")
def running(self):
""" Check if the logging thread is running.