update delete later
This commit is contained in:
parent
954d256ff3
commit
a1304017ce
1 changed files with 3 additions and 0 deletions
|
|
@ -872,6 +872,7 @@ void IosController::stopForHandshake() {
|
||||||
if (m_handshakeTimer->isActive()) {
|
if (m_handshakeTimer->isActive()) {
|
||||||
m_handshakeTimer->stop();
|
m_handshakeTimer->stop();
|
||||||
}
|
}
|
||||||
|
m_handshakeTimer->deleteLater();
|
||||||
m_handshakeTimer = nullptr;
|
m_handshakeTimer = nullptr;
|
||||||
|
|
||||||
qDebug() << "Handshake monitoring stopped.";
|
qDebug() << "Handshake monitoring stopped.";
|
||||||
|
|
@ -911,6 +912,8 @@ void IosController::waitForHandshake() {
|
||||||
// Handshake successful, update state
|
// Handshake successful, update state
|
||||||
qDebug() << "Handshake detected, updating state to CONNECTED.";
|
qDebug() << "Handshake detected, updating state to CONNECTED.";
|
||||||
emit connectionStateChanged(Vpn::ConnectionState::Connected);
|
emit connectionStateChanged(Vpn::ConnectionState::Connected);
|
||||||
|
stopForHandshake();
|
||||||
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (last_handshake_time_sec == 0) {
|
if (last_handshake_time_sec == 0) {
|
||||||
// Keep retrying
|
// Keep retrying
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue