From 25f06cccf181b10597cf849ae4538b52b7324522 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 14 Sep 2020 14:34:45 -0700 Subject: [PATCH] Provides fallback error when connecting to AltServer Fixes operation never finishing under certain circumstances. --- AltStore/Server/ServerManager.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AltStore/Server/ServerManager.swift b/AltStore/Server/ServerManager.swift index 8073f8a2..0d807aba 100644 --- a/AltStore/Server/ServerManager.swift +++ b/AltStore/Server/ServerManager.swift @@ -133,6 +133,10 @@ extension ServerManager let connection = NWConnection(to: .service(name: service.name, type: service.type, domain: service.domain, interface: nil), using: parameters) start(connection) } + else + { + finish(.failure(ALTServerError(.connectionFailed))) + } } } }