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
1 changed files with 3 additions and 3 deletions

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)