forked from goodboy/tractor
1
0
Fork 0

Pre-declare disconnected flag

sigint_ignore_in_pdb_repl
Tyler Goodlet 2022-02-16 13:09:05 -05:00
parent 013e766a16
commit c79363f4a1
1 changed files with 4 additions and 1 deletions
tractor

View File

@ -571,13 +571,16 @@ class Actor:
self._peers[uid].append(chan)
local_nursery: Optional[ActorNursery] = None # noqa
disconnected: bool = False
# Begin channel management - respond to remote requests and
# process received reponses.
try:
disconnected = await self._process_messages(chan)
except trio.Cancelled:
except (
trio.Cancelled,
):
log.cancel(f"Msg loop was cancelled for {chan}")
raise