Skip to content

Commit

Permalink
Python 3.11 compatibility fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbourdeauducq committed Aug 31, 2023
1 parent c4f18ad commit f39f22b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sipyco/pc_rpc.py
Expand Up @@ -654,7 +654,8 @@ def simple_server_loop(targets, host, port, description=None, *, loop=None):
used_loop.run_until_complete(server.start(host, port))
try:
_, pending = used_loop.run_until_complete(asyncio.wait(
[signal_handler.wait_terminate(), server.wait_terminate()],
[asyncio.create_task(signal_handler.wait_terminate()),
asyncio.create_task(server.wait_terminate())],
return_when=asyncio.FIRST_COMPLETED))
for task in pending:
task.cancel()
Expand Down

0 comments on commit f39f22b

Please sign in to comment.