fix for bug 650 (PacketSocket Close()
authorDuy Nguyen <dnlove@gmail.com>
Thu, 06 Aug 2009 21:58:04 -0700
changeset 4698 60cd412fa3dd
parent 4697 6e048d6486d8
child 4699 ba5d6d52be7e
fix for bug 650 (PacketSocket Close()
src/node/packet-socket.cc
--- a/src/node/packet-socket.cc	Wed Aug 05 20:53:44 2009 -0700
+++ b/src/node/packet-socket.cc	Thu Aug 06 21:58:04 2009 -0700
@@ -172,7 +172,7 @@
       m_errno = ERROR_BADF;
       return -1;
     }
-  m_shutdownRecv = false;
+  m_shutdownRecv = true;
   return 0;
 }
 
@@ -186,6 +186,8 @@
       return -1;
     }
   m_state = STATE_CLOSED;
+  m_shutdownSend = true;
+  m_shutdownRecv = true;
   return 0;
 }