diff options
Diffstat (limited to 'pathod')
-rw-r--r-- | pathod/pathoc.py | 5 |
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 |