diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-03-22 07:45:07 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-03-22 07:45:07 +0000 |
| commit | 5b279bac9eea05d764e9cd14c89a699da8898126 (patch) | |
| tree | 99878c46751c74e601d1de54c02e506dc5115b6c /src/timeout.c | |
| parent | 1fa65d89ca5dc64756f7933d7cc3f524e4627dce (diff) | |
| download | luasocket-5b279bac9eea05d764e9cd14c89a699da8898126.tar.gz luasocket-5b279bac9eea05d764e9cd14c89a699da8898126.tar.bz2 luasocket-5b279bac9eea05d764e9cd14c89a699da8898126.zip | |
Settimeout wasn't returning 1...
http.lua is even cleaner. No trash in respt table.
Diffstat (limited to 'src/timeout.c')
| -rw-r--r-- | src/timeout.c | 3 |
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 | /*=========================================================================*\ |
