diff --git a/lualib-src/lua-skynet.c b/lualib-src/lua-skynet.c index 8e1631ab..de4c6421 100644 --- a/lualib-src/lua-skynet.c +++ b/lualib-src/lua-skynet.c @@ -302,7 +302,8 @@ _send(lua_State *L) { } if (session < 0) { // send to invalid address - return 0; + // todo: maybe throw error is better + session = 0; } lua_pushinteger(L,session); return 1;