From c248015f441908139529ce40fee8d43ad3db6dba Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 11 Dec 2007 23:20:34 +0000 Subject: Fixed client crash on error opening a connection. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@603411 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ConnectionImpl.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/qpid/client/ConnectionImpl.cpp') diff --git a/cpp/src/qpid/client/ConnectionImpl.cpp b/cpp/src/qpid/client/ConnectionImpl.cpp index cf00b2b296..ea467429a1 100644 --- a/cpp/src/qpid/client/ConnectionImpl.cpp +++ b/cpp/src/qpid/client/ConnectionImpl.cpp @@ -88,6 +88,7 @@ void ConnectionImpl::open(const std::string& host, int port, void ConnectionImpl::close() { + Mutex::ScopedLock l(lock); if (!isClosed) handler.close(); } -- cgit v1.2.1