diff --git a/src/hlua.c b/src/hlua.c index 02dffe7d7..df463492b 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -8268,7 +8268,7 @@ static int hlua_register_task(lua_State *L) hlua->nargs = 0; /* Schedule task. */ - task_schedule(task, now_ms); + task_wakeup(task, TASK_WOKEN_INIT); return 0;