aboutsummaryrefslogtreecommitdiffstats
path: root/pathod/protocols
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2016-06-03 11:57:42 +1200
committerAldo Cortesi <aldo@nullcube.com>2016-06-03 11:58:05 +1200
commit36383a6146d605879bf8c2834370b09f42bfec06 (patch)
tree14d631fb5b9ca186f39b08fcb739c4207c814fb3 /pathod/protocols
parentc5076f5e019b73ec2f6efea5a4bafed90423df8f (diff)
downloadmitmproxy-36383a6146d605879bf8c2834370b09f42bfec06.tar.gz
mitmproxy-36383a6146d605879bf8c2834370b09f42bfec06.tar.bz2
mitmproxy-36383a6146d605879bf8c2834370b09f42bfec06.zip
Pathod websocket service threads should not be immortal
Diffstat (limited to 'pathod/protocols')
-rw-r--r--pathod/protocols/websockets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/protocols/websockets.py b/pathod/protocols/websockets.py
index 134d27bc..2b60e618 100644
--- a/pathod/protocols/websockets.py
+++ b/pathod/protocols/websockets.py
@@ -18,7 +18,7 @@ class WebsocketsProtocol:
frm = websockets.Frame.from_file(self.pathod_handler.rfile)
except NetlibException as e:
lg("Error reading websocket frame: %s" % e)
- break
+ return None, None
ended = time.time()
lg(frm.human_readable())
retlog = dict(