mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
Provides fallback error when connecting to AltServer
Fixes operation never finishing under certain circumstances.
This commit is contained in:
@@ -133,6 +133,10 @@ extension ServerManager
|
|||||||
let connection = NWConnection(to: .service(name: service.name, type: service.type, domain: service.domain, interface: nil), using: parameters)
|
let connection = NWConnection(to: .service(name: service.name, type: service.type, domain: service.domain, interface: nil), using: parameters)
|
||||||
start(connection)
|
start(connection)
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
finish(.failure(ALTServerError(.connectionFailed)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user