bug 828: PacketSocket::Close does not unregister protocol handler

This commit is contained in:
Quincy Tse
2010-05-30 20:53:25 -07:00
parent cf9ec1f5fe
commit bf0ab3e8a1

View File

@@ -185,6 +185,10 @@ PacketSocket::Close(void)
m_errno = ERROR_BADF;
return -1;
}
else if (m_state == STATE_BOUND || m_state == STATE_CONNECTED)
{
m_node->UnregisterProtocolHandler (MakeCallback (&PacketSocket::ForwardUp, this));
}
m_state = STATE_CLOSED;
m_shutdownSend = true;
m_shutdownRecv = true;