diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-02-22 14:50:27 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-02-22 14:50:27 +0000 |
commit | 79f38b492f65dd5720991a29a59e1ff518f8b68e (patch) | |
tree | 8c1c8fbcda31a9b287fe2fa7f31874f7b28427e8 | |
parent | 5cc71f038547a91c89a01ed4cdbcd0df3b93dbac (diff) | |
download | qpid-python-79f38b492f65dd5720991a29a59e1ff518f8b68e.tar.gz |
removed redundant state flag
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@912595 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/messaging/driver.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py index 7eeee02f3c..820f1ef7f3 100644 --- a/qpid/python/qpid/messaging/driver.py +++ b/qpid/python/qpid/messaging/driver.py @@ -303,7 +303,6 @@ class Driver: self.reset() def reset(self): - self._opening = False self._closing = False self._connected = False self._attachments = {} @@ -586,7 +585,7 @@ class Driver: def dispatch(self): try: - if self._socket is None and self.connection._connected and not self._opening: + if self._socket is None and self.connection._connected: self.connect() elif self._socket is not None and not self.connection._connected and not self._closing: self.disconnect() @@ -615,7 +614,6 @@ class Driver: self._host = 0 self._retrying = False self._buf += struct.pack(HEADER, "AMQP", 1, 1, 0, 10) - self._opening = True except socket.error, e: self._host = (self._host + 1) % len(self._hosts) self._error(e, True) |