forked from vcabbage/amqp
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid double-closing message channel (#27)
* Avoid double-closing message channel Only call done() if the message hasn't been settled. This showed up after recent changes to mode first to correctly settle messages. * Don't add messages with empty delivery tags to the unsettled map Messages that are automatically settled by the sender won't contain a delivery tag, so skip adding them to the map (they were already settled anyways). * track message completion for unsettled messages only * improve test * move creating doneSignal to trackCompletion
- Loading branch information
1 parent
0bbd840
commit 58ec794
Showing
4 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters