Top level actor must have a `main()` now

self_register
Tyler Goodlet 2018-09-14 16:34:13 -04:00
parent 716a44b6b8
commit 65beb2d84e
1 changed files with 2 additions and 4 deletions

View File

@ -705,11 +705,9 @@ async def _start_actor(
arbiter_addr=arbiter_addr,
)
)
if main is not None:
result = await main()
# XXX: If spawned with a dedicated "main function",
# the actor is cancelled when this context is complete
# XXX: the actor is cancelled when this context is complete
# given that there are no more active peer channels connected
actor.cancel_server()