Don't repeat signaling and webrtc for now.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 May 2021 20:53:13 +0000 (22:53 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 May 2021 20:53:13 +0000 (22:53 +0200)
lagarde.py

index ca70a18f8bcd83f9b86702b9957f1da0b2938531..ccbdbf1e616a7b1232bbf45943907d2e2b86d874 100755 (executable)
@@ -317,13 +317,12 @@ async def run_repeated(task):
 async def run(uri):
     try:
         events = Events()
-
         # rtsp = RtspServer()
         webrtc = WebRTCClient(events)
         signaling = SignalingClient(events, uri)
 
-        webrtc_task = asyncio.Task(run_repeated(webrtc.run))
-        signaling_task = asyncio.Task(run_repeated(signaling.run))
+        webrtc_task = asyncio.Task(webrtc.run())
+        signaling_task = asyncio.Task(signaling.run())
 
         done, pending = await asyncio.wait([webrtc_task, signaling_task],
             return_when=asyncio.FIRST_COMPLETED)