Commit ac603ef1 authored by Vincent Pelletier's avatar Vincent Pelletier

Move loop exit condition to loop declaration instead of explicitely breaking an infinite loop.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@646 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 19ed5c8d
......@@ -824,13 +824,11 @@ class Application(object):
# Wait for answers from all storages.
# FIXME this is a busy loop.
while True:
while len(self.local_var.node_tids) != len(storage_node_list):
try:
self._waitMessage(handler=self.storage_handler)
except NEOStorageConnectionFailure:
continue
if len(self.local_var.node_tids) == len(storage_node_list):
break
# Reorder tids
ordered_tids = []
......
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