1
This commit is contained in:
parent
262222f6d2
commit
53d9cd1594
@ -22,8 +22,8 @@ class Ping(threading.Thread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while True:
|
while True:
|
||||||
ts = int(time.time())
|
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
ts = int(time.time())
|
||||||
if self.ping_ts + self.time_out < ts:
|
if self.ping_ts + self.time_out < ts:
|
||||||
# 保持连接
|
# 保持连接
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user