aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-17 13:11:35 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-17 13:11:35 -0400
commitab3b176bb73779b78a3a1e4ccd2b68f6abf3d543 (patch)
tree40f44e5dc0486edd037ecf2bc2d9a697d91dbcb0
parent83daeee61257e971fd3ae105ea9d8b4e811eb272 (diff)
downloadpython-termcast-server-ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543.tar.gz
python-termcast-server-ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543.zip
ignore watcher disconnect events that aren't for us
-rw-r--r--termcast.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/termcast.py b/termcast.py
index a8b47b1..25963ef 100644
--- a/termcast.py
+++ b/termcast.py
@@ -156,6 +156,8 @@ class Connection(object):
self.client.send(b"msg watcher connected\n")
def msg_viewer_disconnect(self, connection_id):
+ if connection_id != self.connection_id:
+ return
self.client.send(b"msg watcher disconnected\n")
self.viewers -= 1