Skip to content

Commit

Permalink
cancel tasks when killing module
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Nov 13, 2023
1 parent e51742e commit bfe46b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bbot/scanner/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ async def _worker_loop(self):
def kill_module(self, module_name, message=None):
module = self.scan.modules[module_name]
module.set_error_state(message=message, clear_outgoing_queue=True)
self.scan.helpers.cancel_tasks_sync(module._tasks)

@property
def modules_by_priority(self):
Expand Down

0 comments on commit bfe46b6

Please sign in to comment.