Skip to content

Commit

Permalink
Avoid canceling already-called timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopper262 committed May 26, 2024
1 parent 9a9c4ff commit 613b70d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GameTester.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ def startProtocol(self):
self.sendPing(self.ping_id)

def pingTimeout(self):
self.timeout = None
if self.ping_failed < 2:
self.ping_failed += 1
self.sendPing(self.ping_id)
Expand Down

0 comments on commit 613b70d

Please sign in to comment.