Provides fallback error when connecting to AltServer

Fixes operation never finishing under certain circumstances.
This commit is contained in:
Riley Testut
2020-09-14 14:34:45 -07:00
parent b0c36adedb
commit 25f06cccf1

View File

@@ -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)))
}
}
}
}