Skip to content

Commit dba3e15

Browse files
committed
bugfix: socket.write return true when success
1 parent 1d91483 commit dba3e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lualib-src/lua-socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ lsend(lua_State *L) {
419419
sz = (int)len;
420420
}
421421
int err = skynet_socket_send(ctx, id, buffer, sz);
422-
lua_pushboolean(L, err);
422+
lua_pushboolean(L, !err);
423423
return 1;
424424
}
425425

0 commit comments

Comments
 (0)