aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-15 11:23:33 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-15 11:23:33 -0400
commitc560af035c36fd1d1f867dce87dbba9f6594daef (patch)
tree9a8097ec31aca1f398053ec428dca1fa19fcd66f
parentcae103673d6a8c9f34e089680cb7488b8fbd2784 (diff)
downloadpython-termcast-server-c560af035c36fd1d1f867dce87dbba9f6594daef.tar.gz
python-termcast-server-c560af035c36fd1d1f867dce87dbba9f6594daef.zip
need to stop watching when we disconnect
-rw-r--r--ssh.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssh.py b/ssh.py
index e191438..92a5cb7 100644
--- a/ssh.py
+++ b/ssh.py
@@ -27,6 +27,7 @@ class Connection(object):
while True:
self.initialized = False
+ self.watching_id = None
self.watching_id = self.select_stream()
if self.watching_id is None: