mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 05:00:40 +02:00
using get_running_loop instead of soon-deprecated get_event_loop
This commit is contained in:
parent
0d08c2ce0d
commit
055acbe591
@ -207,7 +207,7 @@ class Server:
|
||||
after the server is shut down.
|
||||
"""
|
||||
try:
|
||||
self._loop = asyncio.get_event_loop()
|
||||
self._loop = asyncio.get_running_loop()
|
||||
except RuntimeError:
|
||||
self._loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(self._loop)
|
||||
|
Loading…
x
Reference in New Issue
Block a user