if(connectionState() != Disconnected && connectionState() != Network::Reconnecting)
disconnectFromIrc(false); // clean up, but this does not count as requested disconnect!
disconnect(&socket, 0, this, 0); // this keeps the socket from triggering events during clean up
if(connectionState() != Disconnected && connectionState() != Network::Reconnecting)
disconnectFromIrc(false); // clean up, but this does not count as requested disconnect!
disconnect(&socket, 0, this, 0); // this keeps the socket from triggering events during clean up