mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
bugfix: socket.write return true when success
This commit is contained in:
@@ -419,7 +419,7 @@ lsend(lua_State *L) {
|
|||||||
sz = (int)len;
|
sz = (int)len;
|
||||||
}
|
}
|
||||||
int err = skynet_socket_send(ctx, id, buffer, sz);
|
int err = skynet_socket_send(ctx, id, buffer, sz);
|
||||||
lua_pushboolean(L, err);
|
lua_pushboolean(L, !err);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user