Bugzilla – Attachment #774: Proposed patch. for bug #828
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;