// we had errors reaching a host last time - do it again!
if (aConfig.hostErrorArray.count() > 0) {
_syncRequest = null;
final WORequest aSyncRequest = syncRequest(aConfig);
final _NSThreadsafeMutableArray syncHosts = aConfig.hostErrorArray;
if (NSLog.debugLoggingAllowedForLevelAndGroups(NSLog.DebugLevelDetailed, NSLog.DebugGroupDeployment))
NSLog.debug.appendln("Sending sync requests to: " + syncHosts.array());
// final MSiteConfig finalConfig = aConfig;
Thread[] workers = new Thread[syncHosts.count()];
for (int i = 0; i < workers.length; i++) {
final int j = i;
Runnable work = new Runnable() {
public void run() {
MHost aHost = (MHost) syncHosts.objectAtIndex(j);
aHost.sendRequestToWotaskd(aSyncRequest, true, true);
}
};
workers[j] = new Thread(work);
workers[j].start();