Skip to content

Commit

Permalink
when link closes, settle any incomplete transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
grs committed Sep 18, 2019
1 parent 998e767 commit 24d6098
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ link.prefix_event = function (event) {

link.on_detach = function (frame) {
if (this.state.remote_closed()) {
if (this._incomplete) {
this._incomplete.settled = true;
}
this.remote.detach = frame.performative;
var error = this.remote.detach.error;
if (error) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rhea",
"version": "1.0.9",
"version": "1.0.10",
"description": "reactive AMQP 1.0 library",
"homepage": "http://github.com/amqp/rhea",
"license": "Apache-2.0",
Expand Down

0 comments on commit 24d6098

Please sign in to comment.