diff options
author | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
commit | 28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch) | |
tree | 069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/llmessage/net.cpp | |
parent | Second Life viewer sources 1.17.2.0 (diff) | |
download | meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.zip meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.gz meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.bz2 meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.xz |
Second Life viewer sources 1.17.3.0
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 | } |