Closed austinbentlee closed 1 year ago
You can query engine.engine.attackState.get() to see if the attack is cancelled. However this usually isn't necessary because Turbo automatically checks this before it sends every request.
A better approach for blocking behaviour would be to use req.engine.queue() inside the handleResponse callback.
Hello,
The following script continues to run after halting:
Is it possible to un-load the Jython engine once the "halt" button is pressed? Or, alternatively, could we receive an API call to determine if the attack has been halted?
PS: The reason why I'm wanting to do blocking behavior inside of the
queueRequests()
function is because I'm trying to perform a race condition multiple times. If there is a better way of doing this, I'd be open to hearing about it.