Comparison

util/async.lua @ 8625:08bf4df6fdb7

util.async: Remove redundant line committed by mistake (Zash, luacheck)
author Matthew Wild <mwild1@gmail.com>
date Sat, 17 Mar 2018 22:03:08 +0000
parent 8616:a15c891c6232
child 8627:24b59a62acce
comparison
equal deleted inserted replaced
8624:5325f0e1791b 8625:08bf4df6fdb7
28 log("warn", "unexpected async state: unable to locate runner during error handling, got %s", ok); 28 log("warn", "unexpected async state: unable to locate runner during error handling, got %s", ok);
29 return false; 29 return false;
30 end 30 end
31 local error_handler = runner.watchers.error; 31 local error_handler = runner.watchers.error;
32 if error_handler then error_handler(runner, debug.traceback(thread, err)); end 32 if error_handler then error_handler(runner, debug.traceback(thread, err)); end
33 local ready_handler = runner.watchers.ready;
34 runner.state, runner.thread = "ready", nil; 33 runner.state, runner.thread = "ready", nil;
35 return runner:run(); 34 return runner:run();
36 elseif state == "ready" then 35 elseif state == "ready" then
37 -- If state is 'ready', it is our responsibility to update runner.state from 'waiting'. 36 -- If state is 'ready', it is our responsibility to update runner.state from 'waiting'.
38 -- We also have to :run(), because the queue might have further items that will not be 37 -- We also have to :run(), because the queue might have further items that will not be