mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +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;
|
||||
}
|
||||
int err = skynet_socket_send(ctx, id, buffer, sz);
|
||||
lua_pushboolean(L, err);
|
||||
lua_pushboolean(L, !err);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user