aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/curl/request.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/networking/curl/request.cpp')
-rw-r--r--backends/networking/curl/request.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/networking/curl/request.cpp b/backends/networking/curl/request.cpp
index 4a2704fc76..30af48a478 100644
--- a/backends/networking/curl/request.cpp
+++ b/backends/networking/curl/request.cpp
@@ -39,8 +39,9 @@ Request::~Request() {
}
void Request::handleRetry() {
- if (_retryInSeconds > 0) --_retryInSeconds;
- else {
+ if (_retryInSeconds > 0) {
+ --_retryInSeconds;
+ } else {
_state = PROCESSING;
restart();
}
@@ -64,7 +65,8 @@ Common::String Request::date() const { return ""; }
void Request::finishError(ErrorResponse error) {
_state = FINISHED;
- if (_errorCallback) (*_errorCallback)(error);
+ if (_errorCallback)
+ (*_errorCallback)(error);
}
void Request::finishSuccess() { _state = FINISHED; }