simple_server: asyncio TimeoutError has moved
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 25 May 2020 18:39:16 +0000 (18:39 +0000)
committerMatthew Waters <matthew@centricular.com>
Thu, 18 Jun 2020 13:34:48 +0000 (23:34 +1000)
We didn't notice this because the logging was broken.

webrtc/signalling/simple_server.py

index 12153a0..0cae633 100755 (executable)
@@ -68,7 +68,7 @@ class WebRTCSimpleServer(object):
         while msg is None:
             try:
                 msg = await asyncio.wait_for(ws.recv(), self.keepalive_timeout)
-            except (asyncio.exceptions.TimeoutError, concurrent.futures._base.TimeoutError):
+            except (asyncio.TimeoutError, concurrent.futures._base.TimeoutError):
                 print('Sending keepalive ping to {!r} in recv'.format(raddr))
                 await ws.ping()
         return msg