mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-02-14 22:38:42 +01:00
fix: current_event_loop_exists should get the event loop which might not be running yet
This commit is contained in:
@@ -231,6 +231,6 @@ def current_event_loop_exists() -> bool:
|
||||
import asyncio
|
||||
|
||||
try:
|
||||
return not asyncio.get_running_loop().is_closed()
|
||||
return not asyncio.get_event_loop().is_closed()
|
||||
except RuntimeError:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user