mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-22 01:00:02 +02:00
no need to check for RuntimeError as the loop is always new
This commit is contained in:
parent
968f774092
commit
ec5694fedf
@ -31,10 +31,7 @@ class NotifyDict(TypedDict):
|
|||||||
|
|
||||||
def asyncio_loop_thread(loop: asyncio.AbstractEventLoop) -> None:
|
def asyncio_loop_thread(loop: asyncio.AbstractEventLoop) -> None:
|
||||||
asyncio.set_event_loop(loop)
|
asyncio.set_event_loop(loop)
|
||||||
try:
|
|
||||||
loop.run_forever()
|
loop.run_forever()
|
||||||
except RuntimeError:
|
|
||||||
logger.debug("Tried starting even loop, but it is running already")
|
|
||||||
|
|
||||||
|
|
||||||
class ProxyClass(ProxyClassMixin, pydase.components.DeviceConnection):
|
class ProxyClass(ProxyClassMixin, pydase.components.DeviceConnection):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user