mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Proper patch for an Issue #591
This commit is contained in:
parent
5437f8bf36
commit
cb1f17cb04
|
@ -173,6 +173,9 @@ class Task(object):
|
|||
else:
|
||||
return None
|
||||
|
||||
def engine_process(self):
|
||||
return self.process
|
||||
|
||||
def engine_kill(self):
|
||||
if self.process:
|
||||
return self.process.kill()
|
||||
|
@ -512,7 +515,7 @@ def scan_status(taskid):
|
|||
logger.warning("[%s] Invalid task ID provided to scan_status()" % taskid)
|
||||
return jsonize({"success": False, "message": "Invalid task ID"})
|
||||
|
||||
if DataStore.tasks[taskid].engine_get_returncode() is None:
|
||||
if DataStore.tasks[taskid].engine_process() is None:
|
||||
status = "not running"
|
||||
else:
|
||||
status = "terminated" if DataStore.tasks[taskid].engine_has_terminated() is True else "running"
|
||||
|
|
Loading…
Reference in New Issue
Block a user