From 100cd80c466cbf6f25201c064a64cd83f65d621a Mon Sep 17 00:00:00 2001 From: Lakr Date: Tue, 10 Mar 2026 00:55:29 +0800 Subject: [PATCH] update_format --- sources/vphone-cli/VPhoneControl.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/vphone-cli/VPhoneControl.swift b/sources/vphone-cli/VPhoneControl.swift index 9c40923..4b7c0b7 100644 --- a/sources/vphone-cli/VPhoneControl.swift +++ b/sources/vphone-cli/VPhoneControl.swift @@ -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) } }