From 62196231969e4748523a51da032fb32989d74e07 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 10 Feb 2017 13:35:39 -0500 Subject: [PATCH] Fix retry on request and json error for push frame --- src/uploader.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/uploader.c b/src/uploader.c index 989cf19..30108c7 100644 --- a/src/uploader.c +++ b/src/uploader.c @@ -731,11 +731,6 @@ static void after_push_frame(uv_work_t *work, int status) // Increment request count every request for retry counts state->shard[req->shard_index].push_frame_request_count += 1; - if (req->error_status) { - state->error_status = req->error_status; - goto clean_variables; - } - // Check if we got a 200 status and token if ((req->status_code == 200 || req->status_code == 201) && pointer->token != NULL) { @@ -923,6 +918,8 @@ static void push_frame(uv_work_t *work) if (request_status) { req->log->warn(state->env->log_options, state->handle, "Push frame error: %i", request_status); + req->error_status = STORJ_BRIDGE_REQUEST_ERROR; + goto clean_variables; } req->log->debug(state->env->log_options, state->handle,