From 3b7ebb10770d8888031a5ec2a5aadc7a83f09875 Mon Sep 17 00:00:00 2001 From: aljar Date: Thu, 14 Jan 2021 09:16:35 +0100 Subject: [PATCH] The defered parameter indicatates if it failed, while the call in Tagger:close asumed that the parameter indicated usable. This is now fixed. --- src/tagger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tagger.cpp b/src/tagger.cpp index 00bc637..65b3072 100644 --- a/src/tagger.cpp +++ b/src/tagger.cpp @@ -158,7 +158,7 @@ Deferred &Tagger::close() if (_close) return *_close; // create the deferred - _close = std::make_shared(_implementation->usable()); + _close = std::make_shared(!_implementation->usable()); // if there are open messages or there is a queue, they will still get acked and we will then forward it if (unacknowledged()) return *_close;