aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/net.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:01 -0500
committerJacek Antonelli2008-08-15 23:45:01 -0500
commit28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch)
tree069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/llmessage/net.cpp
parentSecond Life viewer sources 1.17.2.0 (diff)
downloadmeta-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.cpp5
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
292void end_net(S32& socket_out) 292void 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
464void end_net(S32& socket_out) 465void 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 }