diff --git a/common/TracySocket.cpp b/common/TracySocket.cpp index c6bf9dc8..9e057cea 100644 --- a/common/TracySocket.cpp +++ b/common/TracySocket.cpp @@ -253,7 +253,7 @@ Socket* ListenSocket::Accept() int sock = accept( m_sock, (sockaddr*)&remote, &sz); #if defined __APPLE__ int val = 1; - setsockopt( m_sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) ); + setsockopt( sock, SOL_SOCKET, SO_NOSIGPIPE, &val, sizeof( val ) ); #endif if( sock == -1 ) {