mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-21 06:13:45 +00:00
handle socket timeouts
This commit is contained in:
parent
b1742dafc2
commit
a68ba01320
1 changed files with 3 additions and 0 deletions
|
|
@ -160,6 +160,9 @@ class WebSocketConnection(object):
|
|||
logger.warning("unsupported opcode: {0}".format(opcode))
|
||||
except IncompleteRead:
|
||||
available = False
|
||||
except TimeoutError:
|
||||
logger.warning("websocket timed out; closing connection")
|
||||
self.open = False
|
||||
|
||||
logger.debug("websocket loop ended; shutting down")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue