mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
error on call an invalid address
This commit is contained in:
@@ -309,7 +309,7 @@ _send(lua_State *L) {
|
||||
if (session < 0) {
|
||||
// send to invalid address
|
||||
// todo: maybe throw error is better
|
||||
session = 0;
|
||||
return 0;
|
||||
}
|
||||
lua_pushinteger(L,session);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user