Verified Commit cc177abc authored by Grigorii Demidov's avatar Grigorii Demidov Committed by Vladimír Čunát

daemon: tls forwarding; fix erroneus task processing when io errors occur

parent e17d1856
Pipeline #31943 passed with stages
in 6 minutes and 51 seconds
......@@ -808,7 +808,6 @@ static int qr_task_on_send(struct qr_task *task, uv_handle_t *handle, int status
* (for instance: tls; send->tls_push->too many non-critical errors->
* on_send with nonzero status->re-add to waiting->send->etc).*/
if (status != 0) {
qr_task_finalize(task, KR_STATE_FAIL);
if (session->outgoing) {
qr_task_finalize(task, KR_STATE_FAIL);
} else {
......@@ -816,7 +815,6 @@ static int qr_task_on_send(struct qr_task *task, uv_handle_t *handle, int status
task->ctx->source.session = NULL;
}
session_del_tasks(session, task);
qr_task_unref(task);
}
if (session->waiting.len > 0) {
struct qr_task *t = session->waiting.at[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment