mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
a quick hack to the scheduling algorithm of scripts, which allows scripts to
finish execution earlier (and thus close the sockets earlier)
This commit is contained in:
parent
695b1a3a2d
commit
91e7ed8aa6
1 changed files with 1 additions and 1 deletions
|
|
@ -343,7 +343,7 @@ int process_waiting2running(lua_State* l, int resume_arguments) {
|
|||
|
||||
// put the thread back into the running
|
||||
// queue
|
||||
running_scripts.push_back((*iter));
|
||||
running_scripts.push_front((*iter));
|
||||
waiting_scripts.erase(iter);
|
||||
|
||||
return SCRIPT_ENGINE_SUCCESS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue