This is an automated email from the ASF dual-hosted git repository.

gsim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-cpp.git

commit 05de76684862914880f3bdf58e73518502499903
Author: Gordon Sim <g...@redhat.com>
AuthorDate: Mon Apr 1 10:09:20 2019 +0100

    QPID-8292: ensure bridge is marked detached on error
---
 src/qpid/broker/Bridge.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qpid/broker/Bridge.cpp b/src/qpid/broker/Bridge.cpp
index d6cd3e2..e9b0b7c 100644
--- a/src/qpid/broker/Bridge.cpp
+++ b/src/qpid/broker/Bridge.cpp
@@ -435,24 +435,28 @@ const string& Bridge::getLocalTag() const
 void Bridge::connectionException(
     framing::connection::CloseCode code, const std::string& msg)
 {
+    detached = true;
     if (errorListener) errorListener->connectionException(code, msg);
 }
 
 void Bridge::channelException(
     framing::session::DetachCode code, const std::string& msg)
 {
+    detached = true;
     if (errorListener) errorListener->channelException(code, msg);
 }
 
 void Bridge::executionException(
     framing::execution::ErrorCode code, const std::string& msg)
 {
+    detached = true;
     if (errorListener) errorListener->executionException(code, msg);
 }
 
 void Bridge::incomingExecutionException(
     framing::execution::ErrorCode code, const std::string& msg)
 {
+    detached = true;
     if (errorListener) errorListener->incomingExecutionException(code, msg);
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to