diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py index 9e33f885cf..e66fc1fe63 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py @@ -185,7 +185,7 @@ if __name__ == '__main__': args = parser.parse_args() our_id = random.randrange(10, 10000) c = WebRTCClient(our_id, args.peerid, args.server) - loop = asyncio.get_event_loop() + loop = asyncio.new_event_loop() loop.run_until_complete(c.connect()) res = loop.run_until_complete(c.loop()) sys.exit(res)