This commit is contained in:
wuaho 2021-08-14 20:35:06 +08:00
parent dfb489dd9c
commit 262222f6d2

View File

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