optimize SOCKET_WARNING msg

This commit is contained in:
Stocom
2017-04-28 10:49:30 +08:00
parent a7be332023
commit cce8f0086a
8 changed files with 82 additions and 62 deletions

View File

@@ -567,8 +567,9 @@ lsendlow(lua_State *L) {
int id = luaL_checkinteger(L, 1);
int sz = 0;
void *buffer = get_buffer(L, 2, &sz);
skynet_socket_send_lowpriority(ctx, id, buffer, sz);
return 0;
int err = skynet_socket_send_lowpriority(ctx, id, buffer, sz);
lua_pushboolean(L, !err);
return 1;
}
static int