Skip to content

Commit 60a3a85

Browse files
authored
Merge pull request wolfpld#624 from slomp/slomp/udp-broadcast-fix
Fixes around UDP broadcast
2 parents 0341819 + 83b52d9 commit 60a3a85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎public/common/TracySocket.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,10 @@ bool UdpListen::Listen( uint16_t port )
678678
#endif
679679
#if defined _WIN32
680680
unsigned long reuse = 1;
681-
setsockopt( m_sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof( reuse ) );
681+
setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, (const char*)&reuse, sizeof( reuse ) );
682682
#else
683683
int reuse = 1;
684-
setsockopt( m_sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
684+
setsockopt( sock, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof( reuse ) );
685685
#endif
686686
#if defined _WIN32
687687
unsigned long broadcast = 1;

0 commit comments

Comments
 (0)