Index: nse_main.cc =================================================================== --- nse_main.cc (revision 11421) +++ nse_main.cc (working copy) @@ -423,23 +423,13 @@ gettimeofday(&now, NULL); - for(iter = waiting_scripts.begin(); iter != waiting_scripts.end(); iter++) - if (iter->rr.host->timedOut(&now)) { - running_scripts.push_front((*iter)); - waiting_scripts.erase(iter); - iter = waiting_scripts.begin(); - } - // Run the garbage collecter. FIXME: This can error in a __gc metamethod lua_gc(L, LUA_GCSTEP, 5); while (!running_scripts.empty()) { current = *(running_scripts.begin()); - if (current.rr.host->timedOut(&now)) - state = LUA_ERRRUN; - else - state = lua_resume(current.thread, current.resume_arguments); + state = lua_resume(current.thread, current.resume_arguments); if(state == LUA_YIELD) { // this script has performed a network io operation