diff --git a/owrx/websocket.py b/owrx/websocket.py index d9ffbd76..5fb590bc 100644 --- a/owrx/websocket.py +++ b/owrx/websocket.py @@ -7,6 +7,7 @@ import select import threading from abc import ABC, abstractmethod from datetime import datetime +from ssl import SSLWantReadError import logging @@ -246,6 +247,8 @@ class WebSocketConnection(object): logger.warning("unsupported opcode: {0}".format(opcode)) except Drained: available = False + except SSLWantReadError: + available = False except IncompleteRead: logger.warning("incomplete read on websocket; closing connection") self.socketError = True