Drop needless if check

drop_main_kwarg
Tyler Goodlet 2018-08-04 18:10:31 -04:00
parent 1da69b1396
commit f7706074a2
1 changed files with 2 additions and 4 deletions

View File

@ -282,9 +282,7 @@ class Actor:
if msg is None: # terminate sentinel if msg is None: # terminate sentinel
log.debug( log.debug(
f"Cancelling all tasks for {chan} from {chan.uid}") f"Cancelling all tasks for {chan} from {chan.uid}")
scopes = self._rpc_tasks.pop(chan, None) for scope, func in self._rpc_tasks.pop(chan, ()):
if scopes:
for scope, func in scopes:
scope.cancel() scope.cancel()
log.debug( log.debug(