diff --git a/owrx/websocket.py b/owrx/websocket.py index 65ea7c9..a50fde7 100644 --- a/owrx/websocket.py +++ b/owrx/websocket.py @@ -244,6 +244,8 @@ class WebSocketConnection(object): self.interruptPipeRecv = None def close(self): + if not self.open: + return self.open = False self.interrupt()