Fix crash

This commit is contained in:
nielsandriesse 2020-12-14 08:57:59 +11:00
parent 4cb17b388d
commit 7ca3b73fd8
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ public enum OnionRequestAPI {
}
}
promise.catch2 { error in // Must be invoked on Threading.workQueue
guard case HTTP.Error.httpRequestFailed(let statusCode, let json) = error else { return }
guard case HTTP.Error.httpRequestFailed(let statusCode, let json) = error, let guardSnode = guardSnode else { return }
let path = paths.first { $0.contains(guardSnode) }
func handleUnspecificError() {
guard let path = path else { return }