unsubscribe upon disconnect
Change-Id: I45f53526b8f65741fede170a0420f0f4aabc00fb
This commit is contained in:
parent
9b93f7d5af
commit
4f42b32385
@ -145,7 +145,8 @@ class Dispatcher(object):
|
||||
"""removes now longer functional connection"""
|
||||
if conn in self._dispatcher_connections:
|
||||
self._dispatcher_connections.remove(conn)
|
||||
# XXX: also clean _dispatcher_subscriptions !
|
||||
for _evt, conns in self._dispatcher_subscriptions.items():
|
||||
conns.discard(conn)
|
||||
|
||||
def register_device(self, devobj, devname, export=True):
|
||||
self.log.debug('registering Device %r as %s (export=%r)' %
|
||||
|
Loading…
x
Reference in New Issue
Block a user