Skip to content

Commit cd7e293

Browse files
committed
OSError in recv thread on disconnect, fixes #32
1 parent 705f1e9 commit cd7e293

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

obswebsocket/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ def run(self):
243243
except websocket.WebSocketConnectionClosedException:
244244
if self.running:
245245
self.core.reconnect()
246+
except OSError as e:
247+
if self.running:
248+
raise e
246249
except (ValueError, exceptions.ObjectError) as e:
247250
LOG.warning(u"Invalid message: {} ({})".format(message, e))
248251
# end while

0 commit comments

Comments
 (0)