Fix reconnecting after connection loss
This commit is contained in:
parent
ffc4d64ae6
commit
08b70f3bdb
@ -344,6 +344,7 @@ void NymeaConnection::onDisconnected()
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qDebug() << "Current transport:" << m_currentTransport << "Remaining connections:" << m_transportCandidates.count() << "Current host:" << m_currentHost;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_transportCandidates.remove(m_currentTransport);
|
m_transportCandidates.remove(m_currentTransport);
|
||||||
@ -365,7 +366,7 @@ void NymeaConnection::onDisconnected()
|
|||||||
emit connectedChanged(false);
|
emit connectedChanged(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_currentTransport) {
|
if (!m_currentHost) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user