summaryrefslogtreecommitdiff
path: root/webrtc
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-05-25 18:39:16 +0000
committerMatthew Waters <matthew@centricular.com>2020-06-18 23:34:48 +1000
commit0776def18cf80317bb6864d69b3cfdc88bd723c8 (patch)
tree7ce02905e1196d5c07ac8dfb0989290d91543fde /webrtc
parent77ae10ab663bda858c03a5becd452a269c70ca19 (diff)
simple_server: asyncio TimeoutError has moved
We didn't notice this because the logging was broken.
Diffstat (limited to 'webrtc')
-rwxr-xr-xwebrtc/signalling/simple_server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webrtc/signalling/simple_server.py b/webrtc/signalling/simple_server.py
index 12153a0..0cae633 100755
--- a/webrtc/signalling/simple_server.py
+++ b/webrtc/signalling/simple_server.py
@@ -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