invert ping check

This commit is contained in:
jesopo 2021-05-12 11:52:33 +00:00
parent a14c7c34a2
commit bdfb91b51d

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: