mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-06 05:30:39 +02:00
fix: current_event_loop_exists should get the event loop which might not be running yet
This commit is contained in:
parent
fb6ec16bf5
commit
38a12fb72e
@ -231,6 +231,6 @@ def current_event_loop_exists() -> bool:
|
|||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
try:
|
try:
|
||||||
return not asyncio.get_running_loop().is_closed()
|
return not asyncio.get_event_loop().is_closed()
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user