fix unexpected null parameter to disconnect, closes, #2663

This commit is contained in:
Stephen Birarda 2014-04-16 11:02:08 -07:00
parent 97e45e8fe5
commit 57567becc8

View file

@ -209,8 +209,10 @@ void NodeList::reset() {
// clear the domain connection information
_domainHandler.clearConnectionInfo();
// also disconnect from the DTLS socket readyRead() so it can handle handshaking
disconnect(_dtlsSocket, 0, this, 0);
// if we setup the DTLS socket, also disconnect from the DTLS socket readyRead() so it can handle handshaking
if (_dtlsSocket) {
disconnect(_dtlsSocket, 0, this, 0);
}
}
void NodeList::addNodeTypeToInterestSet(NodeType_t nodeTypeToAdd) {