ping timeout giveup shouldn't hit continue too

This commit is contained in:
jesopo 2020-06-23 10:36:06 +01:00
parent a102230495
commit a08f53b7f7

View file

@ -213,10 +213,10 @@ class Server(IServer):
else:
ping_sent = True
await self.send(build("PING", ["hello"]))
continue
continue
self.last_read = monotonic()
ping_sent = False
self.last_read = monotonic()
ping_sent = False
try:
lines = self.recv(data)