From 39bfba673b40de6238ad48bbeac8034c9d4aa699 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Tue, 11 Jan 2022 21:56:16 +0100 Subject: [PATCH] catch error resulting from monitor race condition --- owrx/source/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/owrx/source/__init__.py b/owrx/source/__init__.py index a0751b2..8ebd910 100644 --- a/owrx/source/__init__.py +++ b/owrx/source/__init__.py @@ -376,6 +376,9 @@ class SdrSource(ABC): except ProcessLookupError: # been killed by something else, ignore pass + except AttributeError: + # self.process has been overwritten by the monitor since we checked it, which is fine + pass if self.monitor: self.monitor.join() if self.tcpSource is not None: