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): ...@@ -58,14 +58,10 @@ class ConnectionPool(object):
return None return None
app = self.app app = self.app
app.setNodeReady()
# Loop until a connection is obtained.
while True:
neo.logging.debug('trying to connect to %s - %s', node, neo.logging.debug('trying to connect to %s - %s', node,
node.getState()) 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) connector=app.connector_handler(), dispatcher=app.dispatcher)
conn.lock() 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