no need to check for RuntimeError as the loop is always new

This commit is contained in:
Mose Müller 2024-09-25 19:38:09 +02:00
parent 968f774092
commit ec5694fedf

View File

@ -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):