Merge pull request #387 from CopernicaMarketingSoftware/fixTaggerClose

Fix Tagger::close
This commit is contained in:
Emiel Bruijntjes 2021-01-14 10:05:02 +01:00 committed by GitHub
commit 6d0ad0fe0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ Deferred &Tagger::close()
if (_close) return *_close;
// create the deferred
_close = std::make_shared<Deferred>(_implementation->usable());
_close = std::make_shared<Deferred>(!_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;