summaryrefslogtreecommitdiff
path: root/xmake/core/base/socket.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-11-29 21:00:08 +0800
committerruki <[email protected]>2019-11-29 00:00:49 +0800
commit3684e6e787a021555f33b5cc6731815507e897ee (patch)
treed4659f45a8dd41db8d25d4c813810a35ee92113e /xmake/core/base/socket.lua
parent6e42cbc962f56c1e841f66cfda0e4c8f8cde787a (diff)
add coroutine instance for scheduler
Diffstat (limited to 'xmake/core/base/socket.lua')
-rw-r--r--xmake/core/base/socket.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/socket.lua b/xmake/core/base/socket.lua
index 1dbc9f7da..f86ca9bc1 100644
--- a/xmake/core/base/socket.lua
+++ b/xmake/core/base/socket.lua
@@ -476,8 +476,8 @@ function _instance:wait(events, timeout)
-- wait events
local events = -1
local errors = nil
- if scheduler.runing() then
- events, errors = scheduler.wait(self._SOCK, events, timeout or -1)
+ if scheduler:running() then
+ events, errors = scheduler:waitsock(self._SOCK, events, timeout or -1)
else
events, errors = io.socket_wait(self._SOCK, events, timeout or -1)
end