summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2019-12-14 09:51:38 +0800
committerruki <[email protected]>2019-12-14 09:51:38 +0800
commit13f84aad1c1a3b5af36160f108839eae8407c555 (patch)
treeabd6d9fab5c12028523b3cbf197f19fd4033edfb /core/src
parent26ea5a3e4a0a474366e879b529d6f0a2c918ef2d (diff)
fix poller_wait
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/io/poller_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/io/poller_wait.c b/core/src/xmake/io/poller_wait.c
index 03cd90efa..0cf0fb013 100644
--- a/core/src/xmake/io/poller_wait.c
+++ b/core/src/xmake/io/poller_wait.c
@@ -45,7 +45,7 @@ static tb_int_t g_events_count = 0;
static tb_void_t xm_io_poller_event(tb_poller_ref_t poller, tb_socket_ref_t sock, tb_size_t events, tb_cpointer_t priv)
{
// check
- tb_assert_and_check_return(g_lua && !g_events_count);
+ tb_assert_and_check_return(g_lua);
// save socket and events
lua_newtable(g_lua);