aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/pathoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'pathod/pathoc.py')
-rw-r--r--pathod/pathoc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pathod/pathoc.py b/pathod/pathoc.py
index e3b4d1ae..e9fa5c43 100644
--- a/pathod/pathoc.py
+++ b/pathod/pathoc.py
@@ -121,7 +121,10 @@ class WebsocketFrameReader(basethread.BaseThread):
while True:
if self.ws_read_limit == 0:
return
- r, _, _ = select.select([self.rfile], [], [], 0.05)
+ try:
+ r, _, _ = select.select([self.rfile], [], [], 0.05)
+ except OSError:
+ return
delta = time.time() - starttime
if not r and self.timeout and delta > self.timeout:
return