File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Changelog
18
18
- fixed ` EventManager ` not waiting for platform events websocket connection during initialization
19
19
- fixed local ` RequestQueueClient ` not respecting the ` forefront ` argument
20
20
- fixed local ` RequestQueueClient ` not counting the ` handledRequestCount ` property
21
+ - stopped calling ` sys.exit() ` in a nested asyncio loop
21
22
22
23
### Internal changes
23
24
Original file line number Diff line number Diff line change @@ -351,6 +351,8 @@ async def _exit_internal(
351
351
self .log .debug (f'Not calling sys.exit({ exit_code } ) because actor is running in IPython' )
352
352
elif os .getenv ('PYTEST_CURRENT_TEST' , False ):
353
353
self .log .debug (f'Not calling sys.exit({ exit_code } ) because actor is running in an unit test' )
354
+ elif hasattr (asyncio , '_nest_patched' ):
355
+ self .log .debug (f'Not calling sys.exit({ exit_code } ) because actor is running in a nested event loop' )
354
356
else :
355
357
sys .exit (exit_code )
356
358
You can’t perform that action at this time.
0 commit comments