don't throw error when destination address is invalid

This commit is contained in:
Cloud Wu
2014-06-24 19:32:15 +08:00
parent db952dc658
commit 3cadd29796
2 changed files with 1 additions and 4 deletions

View File

@@ -149,7 +149,7 @@ _sendname(lua_State *L, struct skynet_context * context, const char * dest) {
luaL_error(L, "skynet.send invalid param %s", lua_typename(L,lua_type(L,4)));
}
if (session < 0) {
luaL_error(L, "skynet.send session (%d) < 0", session);
return 0;
}
lua_pushinteger(L,session);
return 1;