Don't invalidate the sockets, since even they are closed,
the value is used to join the corresponding threads.
@@ -1459,7 +1459,6 @@ recv_thread_destroy(void)
#if defined(INET) || defined(INET6)
if (SCTP_BASE_VAR(userspace_route) != -1) {
close(SCTP_BASE_VAR(userspace_route));
- SCTP_BASE_VAR(userspace_route) = -1;
}
#endif
#endif
@@ -1470,7 +1469,6 @@ recv_thread_destroy(void)
#else
close(SCTP_BASE_VAR(userspace_rawsctp));
#endif
- SCTP_BASE_VAR(userspace_rawsctp) = -1;
}
if (SCTP_BASE_VAR(userspace_udpsctp) != -1) {
#if defined(__Userspace_os_Windows)
@@ -1478,7 +1476,6 @@ recv_thread_destroy(void)
#else
close(SCTP_BASE_VAR(userspace_udpsctp));
#endif
- SCTP_BASE_VAR(userspace_udpsctp) = -1;
}
#endif
#if defined(INET6)
@@ -1488,7 +1485,6 @@ recv_thread_destroy(void)
#else
close(SCTP_BASE_VAR(userspace_rawsctp6));
#endif
- SCTP_BASE_VAR(userspace_rawsctp6) = -1;
}
if (SCTP_BASE_VAR(userspace_udpsctp6) != -1) {
#if defined(__Userspace_os_Windows)
@@ -1496,8 +1492,7 @@ recv_thread_destroy(void)
#else
close(SCTP_BASE_VAR(userspace_udpsctp6));
#endif
- SCTP_BASE_VAR(userspace_udpsctp6) = -1;
- }
+= }
#endif
}
#else
