diff --git a/app.py b/app.py index 5ea2517e54e0d6d07350233148f8de898a09cb35..5eab0fb83a7a745eb8fdb6bd50e195f817f5bf8d 100644 --- a/app.py +++ b/app.py @@ -32,9 +32,9 @@ def idle_check_thread(): global waiting_time while True: 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?") - time.sleep(3) + time.sleep(5) x = threading.Thread(target=idle_check_thread) x.start()