rectify TimeoutError namespace
This commit is contained in:
parent
60dfda48e0
commit
e26190c283
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class Server(IServer):
|
||||||
try:
|
try:
|
||||||
async with timeout(PING_TIMEOUT):
|
async with timeout(PING_TIMEOUT):
|
||||||
data = await self._reader.read(1024)
|
data = await self._reader.read(1024)
|
||||||
except asyncio.exceptions.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
if ping_sent:
|
if ping_sent:
|
||||||
data = b"" # empty data means the socket disconnected
|
data = b"" # empty data means the socket disconnected
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue