mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-31 01:41:21 +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