added join timeout for rotator thread

pull/783/head
Madis Kaal 2023-07-03 16:49:22 +03:00
rodzic 1dd780bc08
commit cb8921c966
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -320,7 +320,9 @@ class Rotator(object):
self.rotator_thread_running = False
if self.rotator_thread is not None:
self.rotator_thread.join()
self.rotator_thread.join(60)
if self.rotator_thread.is_alive():
self.log_error("rotator control thread failed to join")
self.log_debug("Stopped rotator control thread.")