aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c
index 73a1146..1d710dc 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -169,7 +169,8 @@ int tm_meth_settimeout(lua_State *L, p_tm tm)
169 luaL_argcheck(L, 0, 3, "invalid timeout mode"); 169 luaL_argcheck(L, 0, 3, "invalid timeout mode");
170 break; 170 break;
171 } 171 }
172 return 0; 172 lua_pushnumber(L, 1);
173 return 1;
173} 174}
174 175
175/*=========================================================================*\ 176/*=========================================================================*\