mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Never throw error when sending message to invalid address
This commit is contained in:
@@ -309,7 +309,8 @@ _send(lua_State *L) {
|
|||||||
luaL_error(L, "skynet.send invalid param %s", lua_type(L,4));
|
luaL_error(L, "skynet.send invalid param %s", lua_type(L,4));
|
||||||
}
|
}
|
||||||
if (session < 0) {
|
if (session < 0) {
|
||||||
luaL_error(L, "skynet.send session (%d) < 0", session);
|
// send to invalid address
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
lua_pushinteger(L,session);
|
lua_pushinteger(L,session);
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user