Commit 92fd341d authored by Josh Roesslein's avatar Josh Roesslein
Browse files

Catch fatal errors and kill stream loop.

parent d4f265a9
......@@ -47,6 +47,10 @@ class Stream(object):
except timeout:
conn.close()
continue
except Exception:
# any other exception is fatal, so kill loop
self.running = False
break
# cleanup
conn.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment