update_format

This commit is contained in:
Lakr
2026-03-10 00:55:29 +08:00
parent cb409416af
commit 100cd80c46

View File

@@ -671,11 +671,11 @@ class VPhoneControl {
let timeout = Self.handshakeTimeout
DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { [weak self] in
guard let self else { return }
guard self.isCurrentAttempt(attemptToken, fd: fd) else { return }
guard !self.isConnected else { return }
guard isCurrentAttempt(attemptToken, fd: fd) else { return }
guard !isConnected else { return }
print("[control] handshake timed out after \(Int(timeout.rounded()))s")
Self.shutdownSocket(fd: fd)
self.disconnect(ifCurrentAttempt: attemptToken)
disconnect(ifCurrentAttempt: attemptToken)
}
}