summaryrefslogtreecommitdiff
path: root/xmake/core/base/socket.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/socket.lua')
-rw-r--r--xmake/core/base/socket.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/socket.lua b/xmake/core/base/socket.lua
index f86ca9bc1..ff362a132 100644
--- a/xmake/core/base/socket.lua
+++ b/xmake/core/base/socket.lua
@@ -476,7 +476,7 @@ function _instance:wait(events, timeout)
-- wait events
local events = -1
local errors = nil
- if scheduler:running() then
+ if scheduler:co_running() then
events, errors = scheduler:waitsock(self._SOCK, events, timeout or -1)
else
events, errors = io.socket_wait(self._SOCK, events, timeout or -1)