aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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