Skip to content

Commit 1afc1d5

Browse files
authored
Getting rid of unused code in multiple_connections (#230)
1 parent 4cebc6e commit 1afc1d5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

examples/multiple_connections.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ def on_track_subscribed(
5050
print("disconnected from room")
5151

5252

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-
6353
if __name__ == "__main__":
6454
asyncio.run(main())
6555
asyncio.run(main())

0 commit comments

Comments
 (0)