Fix crash
This commit is contained in:
parent
4cb17b388d
commit
7ca3b73fd8
|
@ -405,7 +405,7 @@ public enum OnionRequestAPI {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
promise.catch2 { error in // Must be invoked on Threading.workQueue
|
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) }
|
let path = paths.first { $0.contains(guardSnode) }
|
||||||
func handleUnspecificError() {
|
func handleUnspecificError() {
|
||||||
guard let path = path else { return }
|
guard let path = path else { return }
|
||||||
|
|
Loading…
Reference in New Issue