We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cebc6e commit 1afc1d5Copy full SHA for 1afc1d5
examples/multiple_connections.py
@@ -50,16 +50,6 @@ def on_track_subscribed(
50
print("disconnected from room")
51
52
53
-def ensure_event_loop():
54
- try:
55
- return asyncio.get_event_loop()
56
- except RuntimeError:
57
- # Create a new event loop if none exists (this can happen in some contexts like certain threads)
58
- loop = asyncio.new_event_loop()
59
- asyncio.set_event_loop(loop)
60
- return loop
61
-
62
63
if __name__ == "__main__":
64
asyncio.run(main())
65
0 commit comments