forked from goodboy/tractor
1
0
Fork 0

Always shield de-register step with arbiter

dereg_on_channel_aclose
Tyler Goodlet 2020-08-05 15:33:15 -04:00
parent 3a868fec30
commit ae8488a578
1 changed files with 3 additions and 3 deletions

View File

@ -678,8 +678,8 @@ class Actor:
finally: finally:
if registered_with_arbiter: if registered_with_arbiter:
# with trio.move_on_after(3) as cs: with trio.move_on_after(3) as cs:
# cs.shield = True cs.shield = True
await self._do_unreg(self._arb_addr) await self._do_unreg(self._arb_addr)
# terminate actor once all it's peers (actors that connected # terminate actor once all it's peers (actors that connected