From c3af86528c9772bd2c7fa7ca9239f035ab2f0660 Mon Sep 17 00:00:00 2001 From: Fabien Danieau Date: Sat, 27 Jan 2024 18:30:09 +0100 Subject: [PATCH] bug #37: rollback previous change --- src/gst_signalling/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gst_signalling/utils.py b/src/gst_signalling/utils.py index 33f34c8..b783a06 100644 --- a/src/gst_signalling/utils.py +++ b/src/gst_signalling/utils.py @@ -34,7 +34,8 @@ def on_list(found_producers: Dict[str, Dict[str, str]]) -> None: return producers - return asyncio.run(get_list()) + loop = asyncio.get_event_loop() + return loop.run_until_complete(get_list()) def find_producer_peer_id_by_name(host: str, port: int, name: str) -> str: