diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/net.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linden/indra/llmessage/net.cpp b/linden/indra/llmessage/net.cpp index 1395093..92efd15 100644 --- a/linden/indra/llmessage/net.cpp +++ b/linden/indra/llmessage/net.cpp | |||
@@ -291,8 +291,9 @@ S32 start_net(S32& socket_out, int& nPort) | |||
291 | 291 | ||
292 | void end_net(S32& socket_out) | 292 | void end_net(S32& socket_out) |
293 | { | 293 | { |
294 | if (socket_out < 0) | 294 | if (socket_out >= 0) |
295 | { | 295 | { |
296 | shutdown(socket_out, SD_BOTH); | ||
296 | closesocket(socket_out); | 297 | closesocket(socket_out); |
297 | } | 298 | } |
298 | WSACleanup(); | 299 | WSACleanup(); |
@@ -463,7 +464,7 @@ S32 start_net(S32& socket_out, int& nPort) | |||
463 | 464 | ||
464 | void end_net(S32& socket_out) | 465 | void end_net(S32& socket_out) |
465 | { | 466 | { |
466 | if (socket_out < 0) | 467 | if (socket_out >= 0) |
467 | { | 468 | { |
468 | close(socket_out); | 469 | close(socket_out); |
469 | } | 470 | } |