Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Fix shouldSendDisposition() check in Message.Release()
Browse files Browse the repository at this point in the history
  • Loading branch information
vcabbage committed Feb 22, 2019
1 parent d48c91e commit ea73407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1773,7 +1773,7 @@ func (m *Message) Reject(e *Error) error {
// Release releases the message back to the server. The message
// may be redelivered to this or another consumer.
func (m *Message) Release() error {
if m.shouldSendDisposition() {
if !m.shouldSendDisposition() {
return nil
}
return m.receiver.messageDisposition(m.deliveryID, &stateReleased{})
Expand Down

0 comments on commit ea73407

Please sign in to comment.