mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-10 02:55:22 +02:00
Fixed crash on disconnect
This commit is contained in:
@ -312,6 +312,8 @@ namespace net {
|
||||
winsock_init = true;
|
||||
}
|
||||
assert(winsock_init);
|
||||
#else
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
|
||||
// Create a socket
|
||||
@ -358,6 +360,8 @@ namespace net {
|
||||
winsock_init = true;
|
||||
}
|
||||
assert(winsock_init);
|
||||
#else
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
|
||||
// Create a socket
|
||||
@ -410,6 +414,8 @@ namespace net {
|
||||
winsock_init = true;
|
||||
}
|
||||
assert(winsock_init);
|
||||
#else
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
#endif
|
||||
|
||||
// Create a socket
|
||||
|
Reference in New Issue
Block a user