Fix reconnecting after connection loss

This commit is contained in:
Michael Zanetti 2019-03-03 15:29:25 +01:00
parent ffc4d64ae6
commit 08b70f3bdb

View File

@ -344,6 +344,7 @@ void NymeaConnection::onDisconnected()
});
}
qDebug() << "Current transport:" << m_currentTransport << "Remaining connections:" << m_transportCandidates.count() << "Current host:" << m_currentHost;
return;
}
m_transportCandidates.remove(m_currentTransport);
@ -365,7 +366,7 @@ void NymeaConnection::onDisconnected()
emit connectedChanged(false);
}
if (!m_currentTransport) {
if (!m_currentHost) {
return;
}