diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-09-17 13:11:35 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-09-17 13:11:35 -0400 |
commit | ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543 (patch) | |
tree | 40f44e5dc0486edd037ecf2bc2d9a697d91dbcb0 /termcast.py | |
parent | 83daeee61257e971fd3ae105ea9d8b4e811eb272 (diff) | |
download | python-termcast-server-ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543.tar.gz python-termcast-server-ab3b176bb73779b78a3a1e4ccd2b68f6abf3d543.zip |
ignore watcher disconnect events that aren't for us
Diffstat (limited to 'termcast.py')
-rw-r--r-- | termcast.py | 2 |
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 |