added timeout for joining gps thread

pull/783/head
Madis Kaal 2023-07-03 16:47:08 +03:00
rodzic 16acef5d2c
commit f0288365ca
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -335,7 +335,9 @@ class GPSDAdaptor(object):
self.gpsd_thread_running = False
# Wait for the thread to close.
if self.gpsd_thread != None:
self.gpsd_thread.join()
self.gpsd_thread.join(60)
if self.gpsd_thread.is_alive():
logging.error("GPS thread failed to join")
def send_to_callback(self, data):
"""