mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-12 19:27:11 +01:00
Fixed crash on disconnect
This commit is contained in:
parent
3350697875
commit
6114cf0f58
@ -312,6 +312,8 @@ namespace net {
|
|||||||
winsock_init = true;
|
winsock_init = true;
|
||||||
}
|
}
|
||||||
assert(winsock_init);
|
assert(winsock_init);
|
||||||
|
#else
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create a socket
|
// Create a socket
|
||||||
@ -358,6 +360,8 @@ namespace net {
|
|||||||
winsock_init = true;
|
winsock_init = true;
|
||||||
}
|
}
|
||||||
assert(winsock_init);
|
assert(winsock_init);
|
||||||
|
#else
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create a socket
|
// Create a socket
|
||||||
@ -410,6 +414,8 @@ namespace net {
|
|||||||
winsock_init = true;
|
winsock_init = true;
|
||||||
}
|
}
|
||||||
assert(winsock_init);
|
assert(winsock_init);
|
||||||
|
#else
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Create a socket
|
// Create a socket
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace net {
|
namespace net {
|
||||||
|
Loading…
Reference in New Issue
Block a user