mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
remove dead_service table, address may reused
This commit is contained in:
@@ -278,6 +278,11 @@ send_message(lua_State *L, int source, int idx_type) {
|
||||
luaL_error(L, "invalid param %s", lua_typename(L, lua_type(L,idx_type+2)));
|
||||
}
|
||||
if (session < 0) {
|
||||
if (session == -2) {
|
||||
// package is too large
|
||||
lua_pushboolean(L, 0);
|
||||
return 1;
|
||||
}
|
||||
// send to invalid address
|
||||
// todo: maybe throw an error would be better
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user