Skip to content

Commit

Permalink
bug #34: change run_until_complete to run
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienDanieau committed Jan 2, 2024
1 parent 7dbe4e2 commit db5e5e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gst_signalling/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def on_list(found_producers: Dict[str, Dict[str, str]]) -> None:

return producers

loop = asyncio.get_event_loop()
return loop.run_until_complete(get_list())
return asyncio.run(get_list())


def find_producer_peer_id_by_name(host: str, port: int, name: str) -> str:
Expand Down

0 comments on commit db5e5e1

Please sign in to comment.