This commit is contained in:
Joscha 2017-09-08 06:04:01 +00:00
parent 2e7b364307
commit 023d154d37

View file

@ -94,7 +94,7 @@ class Connection:
logger.debug("Pinged!")
except asyncio.TimeoutError:
logger.warning("Ping timed out.")
await self._ws.close2()
await self._ws.close()
break
except (websockets.ConnectionClosed, ConnectionResetError):
break