Fix unnecessary path rebuilding
This commit is contained in:
parent
b721794a51
commit
8477f75426
|
@ -438,10 +438,12 @@ public enum OnionRequestAPI {
|
|||
OnionRequestAPI.snodeFailureCount[snode] = snodeFailureCount
|
||||
}
|
||||
} else {
|
||||
handleUnspecificError()
|
||||
// Do nothing
|
||||
}
|
||||
} else if let message = json?["result"] as? String, message == "Loki Server error" {
|
||||
// Do nothing
|
||||
} else if statusCode == 0 { // Timeout
|
||||
// Do nothing
|
||||
} else {
|
||||
handleUnspecificError()
|
||||
}
|
||||
|
|
|
@ -339,7 +339,7 @@ public final class SnodeAPI : NSObject {
|
|||
}
|
||||
}
|
||||
switch statusCode {
|
||||
case 0, 400, 500, 503:
|
||||
case 500, 502, 503:
|
||||
// The snode is unreachable
|
||||
handleBadSnode()
|
||||
case 406:
|
||||
|
|
Loading…
Reference in New Issue