133 |
|
Iterator i = componentsToStart.iterator(); |
134 |
|
while(i.hasNext()) { |
135 |
|
try { |
136 |
< |
Component component = (Component) i.next(); |
136 |
> |
component = (Component) i.next(); |
137 |
|
System.out.println(toString + ": starting component - " + component.toString()); |
138 |
|
component.start(); |
139 |
|
componentsToStart.remove(componentsToStart.indexOf(component)); |
150 |
|
if (componentsToStart.size() > 0) { |
151 |
|
System.err.println(toString + ": WARNING One or more components failed to start correctly."); |
152 |
|
System.err.println(toString + ": Will try again in 5 seconds"); |
153 |
< |
Thread.sleep(5000); |
153 |
> |
try { |
154 |
> |
Thread.sleep(5000); |
155 |
> |
} catch (InterruptedException e) { |
156 |
> |
// we're not bothered |
157 |
> |
} |
158 |
|
} else { |
159 |
|
tryAgain = false; |
160 |
|
} |