You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by pm...@apache.org on 2014/07/24 22:18:56 UTC
svn commit: r1613270 - /qpid/trunk/qpid/python/qpid/messaging/endpoints.py
Author: pmoravec
Date: Thu Jul 24 20:18:56 2014
New Revision: 1613270
URL: http://svn.apache.org/r1613270
Log:
[QPID-5852]: connection.opened() returns True after unsuccessful connection (fixing regression infested by previous commit)
Modified:
qpid/trunk/qpid/python/qpid/messaging/endpoints.py
Modified: qpid/trunk/qpid/python/qpid/messaging/endpoints.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/messaging/endpoints.py?rev=1613270&r1=1613269&r2=1613270&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/messaging/endpoints.py (original)
+++ qpid/trunk/qpid/python/qpid/messaging/endpoints.py Thu Jul 24 20:18:56 2014
@@ -222,7 +222,8 @@ class Connection(Endpoint):
self.error = None
raise e
- self.close()
+ if not self._unlinked():
+ self.close()
raise e
def get_error(self):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org