@@ -137,7 +137,7 @@ void handle_transaction_coordinator_outcome(messaging_handler& handler, tracker
137137 case transaction_context::State::DISCHARGING:
138138 // Don't throw error here, instead close link with error
139139 make_wrapper (transaction_context->coordinator ).close (error_condition{" amqp:not-allowed" , " Received transaction declared disposition in invalid state" });
140- transaction_context.release ();
140+ transaction_context.reset ();
141141 }
142142 } else if (pn_disposition_type (disposition) == PN_ACCEPTED) {
143143 switch (state) {
@@ -159,7 +159,7 @@ void handle_transaction_coordinator_outcome(messaging_handler& handler, tracker
159159 case transaction_context::State::DECLARED:
160160 // TODO: Don't throw error here, instead detach link or close session?
161161 make_wrapper (transaction_context->coordinator ).close (error_condition{" amqp:not-allowed" , " Received transaction accepted disposition in invalid state" });
162- transaction_context.release ();
162+ transaction_context.reset ();
163163 }
164164 } else if (auto rejected_disp = pn_rejected_disposition (disposition); rejected_disp) {
165165 switch (state) {
@@ -181,7 +181,7 @@ void handle_transaction_coordinator_outcome(messaging_handler& handler, tracker
181181 case transaction_context::State::DECLARED:
182182 // TODO: Don't throw error here, instead detach link or close session?
183183 make_wrapper (transaction_context->coordinator ).close (error_condition{" amqp:not-allowed" , " Received transaction rejected disposition in invalid state" });
184- transaction_context.release ();
184+ transaction_context.reset ();
185185 }
186186 }
187187 // TODO: Don't ignore unexpected disposition here, instead detach link or close session?
0 commit comments