since correctly detecting python3 now, makes 'def disconnect_all()' python3-safe

pull/658/head
Steven Robertson 5 years ago
parent 5196fbbadf
commit 05f74e3b30

@ -1279,7 +1279,8 @@ class Router(mitogen.parent.Router):
self.broker.defer(stream.on_disconnect, self.broker)
def disconnect_all(self):
for stream in self._stream_by_id.values():
# making stream_by_id python3-safe by converting stream_by_id values iter to list
for stream in list(self._stream_by_id.values()):
self.disconnect_stream(stream)

Loading…
Cancel
Save