Moved the first wait to make 10 minute timer more accurate

main
YandolsZX 2 years ago
parent 014709da7a
commit f918675973
  1. 2
      chatterino_process_monitor.py

@ -51,6 +51,7 @@ if __name__ == '__main__':
# Create system tray icon
icon = create_tray_icon()
time.sleep(1) # wait for system tray icon to initialize
# Loop to check if Chatterino is running every 10 minutes
while True:
@ -64,5 +65,4 @@ if __name__ == '__main__':
print("[" + timenow + "] Chatterino is not running. Starting in 30 seconds...")
time.sleep(30)
run_program(program_path)
time.sleep(1) # wait for system tray icon to initialize
time.sleep(600) # wait 10 minutes

Loading…
Cancel
Save