Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Commit

Permalink
fix the watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyquerty committed Nov 9, 2020
1 parent 8a35050 commit 8a3c505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_chessbot.py
Expand Up @@ -26,8 +26,8 @@ def begin_process(pid):

while 1:
sleep(1)
for pid, process in processes.items():
if not process.is_alive():
for pid in list(processes.keys()):
if not processes[pid].is_alive():
print("Process {} failed! Restarting...".format(pid))

del processes[pid]
Expand Down

0 comments on commit 8a3c505

Please sign in to comment.