From ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 17 Sep 2014 13:11:35 -0400 Subject: ignore watcher disconnect events that aren't for us --- termcast.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'termcast.py') 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 -- cgit v1.2.3-54-g00ecf