mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-01 22:25:46 +01:00
Do not fallback to REST for resumable upload spec on ratelimit.
This commit is contained in:
@@ -868,6 +868,9 @@ public class SignalServiceMessageSender {
|
||||
} catch (WebSocketUnavailableException e) {
|
||||
Log.w(TAG, "[getResumableUploadSpec] Pipe unavailable, falling back... (" + e.getClass().getSimpleName() + ": " + e.getMessage() + ")");
|
||||
} catch (IOException e) {
|
||||
if (e instanceof RateLimitException) {
|
||||
throw e;
|
||||
}
|
||||
Log.w(TAG, "Failed to retrieve attachment upload attributes using pipe. Falling back...");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user