mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 12:28:21 +01:00
Select wasn't calling tm_markstart.
This commit is contained in:
parent
eba5f22437
commit
e1d318f26c
@ -62,6 +62,7 @@ static int global_select(lua_State *L) {
|
||||
ndirty = check_dirty(L, 1, rtab, &rset);
|
||||
t = ndirty > 0? 0.0: t;
|
||||
tm_init(&tm, t, -1);
|
||||
tm_markstart(&tm);
|
||||
max_fd = collect_fd(L, 2, max_fd, itab, &wset);
|
||||
ret = sock_select(max_fd+1, &rset, &wset, NULL, &tm);
|
||||
if (ret > 0 || ndirty > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user