Revert the changes in _channel.py

pull/21921/head
Lidi Zheng 5 years ago
parent 33014035eb
commit 5cf41f3424
  1. 5
      src/python/grpcio/grpc/experimental/aio/_channel.py

@ -395,10 +395,9 @@ class Channel:
# A new set is created acting as a shallow copy because
# when cancellation happens the calls are automatically
# removed from the originally set.
calls = WeakSet(self._ongoing_calls.calls)
calls = WeakSet(data=self._ongoing_calls.calls)
for call in calls:
if call is not None:
call.cancel()
call.cancel()
self._channel.close()

Loading…
Cancel
Save