From cb9b0760f23d4c93b0b55b4ab5b4fc67f3a78851 Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Tue, 18 Dec 2018 19:52:28 +0100 Subject: [PATCH] fix crash for spectrum analyzer with GR backend (#587) --- src/urh/dev/gr/SpectrumThread.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/urh/dev/gr/SpectrumThread.py b/src/urh/dev/gr/SpectrumThread.py index 47dd59d961..cfe99ee6f0 100644 --- a/src/urh/dev/gr/SpectrumThread.py +++ b/src/urh/dev/gr/SpectrumThread.py @@ -30,6 +30,9 @@ def run(self): while not self.isInterruptionRequested(): try: rcvd += recv(32768) # Receive Buffer = 32768 Byte + except zmq.error.Again: + # timeout + continue except (zmq.error.ContextTerminated, ConnectionResetError): self.stop("Stopped receiving, because connection was reset") return