catch error resulting from monitor race condition

This commit is contained in:
Jakob Ketterl 2022-01-11 21:56:16 +01:00
parent 5adb53d990
commit 39bfba673b

View File

@ -376,6 +376,9 @@ class SdrSource(ABC):
except ProcessLookupError: except ProcessLookupError:
# been killed by something else, ignore # been killed by something else, ignore
pass pass
except AttributeError:
# self.process has been overwritten by the monitor since we checked it, which is fine
pass
if self.monitor: if self.monitor:
self.monitor.join() self.monitor.join()
if self.tcpSource is not None: if self.tcpSource is not None: