Skip to content
Snippets Groups Projects
Commit f2982fae authored by Muhamad Nobel Fauzan's avatar Muhamad Nobel Fauzan
Browse files

fix idle user bug

parent bbe37c89
No related merge requests found
...@@ -32,9 +32,9 @@ def idle_check_thread(): ...@@ -32,9 +32,9 @@ def idle_check_thread():
global waiting_time global waiting_time
while True: while True:
current_time = time.time() current_time = time.time()
if (last_msg + waiting_time) < current_time and (last_msg + waiting_time + 1) > current_time: if (last_msg + waiting_time) < current_time and (last_msg + waiting_time + 4) > current_time:
socketio.send("are you there?") socketio.send("are you there?")
time.sleep(3) time.sleep(5)
x = threading.Thread(target=idle_check_thread) x = threading.Thread(target=idle_check_thread)
x.start() x.start()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment