invert ping check

This commit is contained in:
jesopo 2021-05-12 11:52:33 +00:00
parent a14c7c34a2
commit bdfb91b51d
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class Server(IServer):
line = done.result()
self._process_queue.append(line)
elif done.result() is None:
if ping_sent:
if not ping_sent:
await self.send(build("PING", ["hello"]))
ping_sent = True
else: