Skip to content

Commit

Permalink
U
Browse files Browse the repository at this point in the history
  • Loading branch information
OasisAkari committed Dec 8, 2024
1 parent 0f5a6a4 commit 72ac16b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def restart_process(bot_name: str):
processes.remove(p)
p.terminate()
p.join()
p.close()
restart_process(p.name)
break

Expand All @@ -203,6 +204,7 @@ def restart_process(bot_name: str):
for ps in processes:
ps.terminate()
ps.join()
ps.close()
processes.clear()
continue
except Exception:
Expand All @@ -213,4 +215,5 @@ def restart_process(bot_name: str):
for ps in processes:
ps.terminate()
ps.join()
ps.close()
processes.clear()

0 comments on commit 72ac16b

Please sign in to comment.