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