From 16e63edbc38fca44800df6e9125e1dfc231df1cd Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 27 Jul 2016 13:12:22 +0200 Subject: This is not an error according to the tests --- common/messagequeue.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'common') diff --git a/common/messagequeue.cpp b/common/messagequeue.cpp index 28eacb7..54aaf8c 100644 --- a/common/messagequeue.cpp +++ b/common/messagequeue.cpp @@ -108,7 +108,6 @@ KAsync::Job MessageQueue::dequeueBatch(int maxBatchSize, const std::functi .syncThen([this, resultCount, &future]() { processRemovals(); if (*resultCount == 0) { - future.setError(static_cast(ErrorCodes::NoMessageFound), "No message found"); future.setFinished(); } else { if (isEmpty()) { -- cgit v1.2.3