diff options
| -rw-r--r-- | xmake/core/base/scheduler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/scheduler.lua b/xmake/core/base/scheduler.lua index eefb46694..b8f3ca8c1 100644 --- a/xmake/core/base/scheduler.lua +++ b/xmake/core/base/scheduler.lua @@ -297,8 +297,8 @@ function scheduler:sock_wait(sock, events, timeout) local timer_task = nil if timeout > 0 then timer_task = self:_timer():post(function (cancel) - print(cancel, running) if not cancel and running:is_suspended() then + self:_co_suspended_set(sock, nil) self:co_resume(running, 0) end end, timeout) |
