Skip to content

Commit

Permalink
bugfix: socket.write return true when success
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 28, 2013
1 parent 1d91483 commit dba3e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lualib-src/lua-socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dba3e15

Please sign in to comment.