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