Skip to content

Commit

Permalink
UDPSocket: some small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Dec 1, 2023
1 parent 15742dc commit 70803d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tdme/os/network/UDPSocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ UDPSocket* UDPSocket::create(IpVersion ipVersion) {
}
#ifdef __APPLE__
int flag = 1;
if (setsockopt(socket.descriptor, SOL_SOCKET, SO_NOSIGPIPE, (void*)&flag, sizeof(flag)) == -1) {
if (setsockopt(socket->descriptor, SOL_SOCKET, SO_NOSIGPIPE, (void*)&flag, sizeof(flag)) == -1) {
throw NetworkSocketException("Could not set no sig pipe on socket: " + string(strerror(errno)));
}
#endif
Expand Down

0 comments on commit 70803d0

Please sign in to comment.