diff options
Diffstat (limited to 'cpp/src/qpid/client/Connector.cpp')
-rw-r--r-- | cpp/src/qpid/client/Connector.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/Connector.cpp b/cpp/src/qpid/client/Connector.cpp index ba11ea5569..80d97b10aa 100644 --- a/cpp/src/qpid/client/Connector.cpp +++ b/cpp/src/qpid/client/Connector.cpp @@ -52,9 +52,8 @@ Connector::Connector( } Connector::~Connector(){ - if (receiver.id()) { + if (receiver.id() && receiver.id() != Thread::current().id()) receiver.join(); - } } void Connector::connect(const std::string& host, int port){ |