Avoid complications in cases where we start a syndicate actor as part of another application

This commit is contained in:
Tony Garnock-Jones 2022-01-11 20:19:40 +01:00
parent 6dcac58377
commit 2b5a0cdf02
1 changed files with 5 additions and 1 deletions

View File

@ -550,4 +550,8 @@ def __boot_inert():
_inert_ref = Turn.active.ref(_inert_entity)
async def __run_inert():
Actor(__boot_inert, name = '_inert_actor')
asyncio.get_event_loop().run_until_complete(__run_inert())
def __setup_inert():
loop = asyncio.new_event_loop()
loop.run_until_complete(__run_inert())
loop.close()
__setup_inert()