Drop needless if check
parent
1da69b1396
commit
f7706074a2
|
@ -282,9 +282,7 @@ class Actor:
|
|||
if msg is None: # terminate sentinel
|
||||
log.debug(
|
||||
f"Cancelling all tasks for {chan} from {chan.uid}")
|
||||
scopes = self._rpc_tasks.pop(chan, None)
|
||||
if scopes:
|
||||
for scope, func in scopes:
|
||||
for scope, func in self._rpc_tasks.pop(chan, ()):
|
||||
scope.cancel()
|
||||
|
||||
log.debug(
|
||||
|
|
Loading…
Reference in New Issue