mirror of
https://github.com/Lakr233/vphone-cli.git
synced 2026-09-05 17:14:28 +00:00
update_format
This commit is contained in:
@@ -671,11 +671,11 @@ class VPhoneControl {
|
|||||||
let timeout = Self.handshakeTimeout
|
let timeout = Self.handshakeTimeout
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { [weak self] in
|
DispatchQueue.main.asyncAfter(deadline: .now() + timeout) { [weak self] in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
guard self.isCurrentAttempt(attemptToken, fd: fd) else { return }
|
guard isCurrentAttempt(attemptToken, fd: fd) else { return }
|
||||||
guard !self.isConnected else { return }
|
guard !isConnected else { return }
|
||||||
print("[control] handshake timed out after \(Int(timeout.rounded()))s")
|
print("[control] handshake timed out after \(Int(timeout.rounded()))s")
|
||||||
Self.shutdownSocket(fd: fd)
|
Self.shutdownSocket(fd: fd)
|
||||||
self.disconnect(ifCurrentAttempt: attemptToken)
|
disconnect(ifCurrentAttempt: attemptToken)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user