update delete later

This commit is contained in:
Macbook 2024-12-08 15:47:24 +07:00
parent 954d256ff3
commit a1304017ce

View file

@ -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