From 17dd334b821f9e70ea6d3a3615c111e0b62a32bf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Apr 2019 14:23:29 +0200 Subject: [PATCH] client/ThreadBackgroundCommand: fix inverted check --- src/client/ThreadBackgroundCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/ThreadBackgroundCommand.cxx b/src/client/ThreadBackgroundCommand.cxx index 32297c306..4cf2c0f40 100644 --- a/src/client/ThreadBackgroundCommand.cxx +++ b/src/client/ThreadBackgroundCommand.cxx @@ -53,7 +53,7 @@ ThreadBackgroundCommand::DeferredFinish() noexcept /* send the response */ Response response(client, 0); - if (!error) { + if (error) { PrintError(response, std::move(error)); } else { SendResponse(response);