Commit 1d4c4825 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Delete outer loop, at most one iteration could happpen.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2575 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 3149c554
......@@ -58,14 +58,10 @@ class ConnectionPool(object):
return None
app = self.app
# Loop until a connection is obtained.
while True:
app.setNodeReady()
neo.logging.debug('trying to connect to %s - %s', node,
node.getState())
app.setNodeReady()
conn = MTClientConnection(app.em,
app.storage_event_handler, addr,
conn = MTClientConnection(app.em, app.storage_event_handler, addr,
connector=app.connector_handler(), dispatcher=app.dispatcher)
conn.lock()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment