Skip to content

Commit

Permalink
fix: exploitfarm start --test
Browse files Browse the repository at this point in the history
  • Loading branch information
domysh committed Jun 28, 2024
1 parent 845bd9f commit 6d11b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/exploitfarm/xploit.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,8 @@ def shutdown(restart:bool=False):
if restart:
g.restart_event.set()
g.print_queue.put("Stopping exploit execution..")
g.pool.shutdown(wait=True, cancel_futures=True)
if g.pool:
g.pool.shutdown(wait=True, cancel_futures=True)
try:
data = {"server_id": g.server_id, "queue":g.attack_storage.pick_attacks()}
if data:
Expand Down

0 comments on commit 6d11b8d

Please sign in to comment.