master: helper functions to force disconnect everything

wip-fakessh-exit-status
David Wilson 7 years ago
parent 9b5d0a9b97
commit beb16d0db6

@ -615,6 +615,13 @@ class Router(mitogen.parent.Router):
child = parent
parent = parent.via
def disconnect_stream(self, stream):
self.broker.defer(stream.on_disconnect, self.broker)
def disconnect_all(self):
for stream in self._stream_by_id.values():
self.disconnect_stream(stream)
class IdAllocator(object):
def __init__(self, router):

Loading…
Cancel
Save