bugfix: socket.write return true when success

This commit is contained in:
云风
2013-08-28 17:40:01 +08:00
parent 1d91483369
commit dba3e1562b

View File

@@ -419,7 +419,7 @@ lsend(lua_State *L) {
sz = (int)len;
}
int err = skynet_socket_send(ctx, id, buffer, sz);
lua_pushboolean(L, err);
lua_pushboolean(L, !err);
return 1;
}