This commit is contained in:
wuaho 2021-08-14 20:35:32 +08:00
parent 262222f6d2
commit 53d9cd1594

View File

@ -22,8 +22,8 @@ class Ping(threading.Thread):
def run(self):
while True:
ts = int(time.time())
time.sleep(10)
ts = int(time.time())
if self.ping_ts + self.time_out < ts:
# 保持连接
try: