Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

update_format

Lakr100cd80c466c
diff --git a/sources/vphone-cli/VPhoneControl.swift b/sources/vphone-cli/VPhoneControl.swift
index 9c409233..4b7c0b7c 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)
}
}