Commit 894fcc47 authored by dnc40085's avatar dnc40085
Browse files

minor change

parent 4f097cf0
...@@ -17,13 +17,13 @@ void alarm_timer_common(lua_State* L, unsigned id){ ...@@ -17,13 +17,13 @@ void alarm_timer_common(lua_State* L, unsigned id){
if(alarm_timer_cb_ref[id] == LUA_NOREF) if(alarm_timer_cb_ref[id] == LUA_NOREF)
return; return;
lua_rawgeti(L, LUA_REGISTRYINDEX, alarm_timer_cb_ref[id]); lua_rawgeti(L, LUA_REGISTRYINDEX, alarm_timer_cb_ref[id]);
lua_call(L, 0, 0);
if(alarm_timer_repeat[id]==0) if(alarm_timer_repeat[id]==0)
{ {
if(alarm_timer_cb_ref[id] != LUA_NOREF) if(alarm_timer_cb_ref[id] != LUA_NOREF)
luaL_unref(L, LUA_REGISTRYINDEX, alarm_timer_cb_ref[id]); luaL_unref(L, LUA_REGISTRYINDEX, alarm_timer_cb_ref[id]);
} }
lua_call(L, 0, 0);
} }
void alarm_timer_cb0(void *arg){ void alarm_timer_cb0(void *arg){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment