getContext().getExecutorService().execute(connector);
} catch (RejectedExecutionException ex) {
// executor is shutting down...
continue;
}
socket = connector.awaitConnection();
dispatchEvents(lc);
connector = createConnector(address, port, reconnectionDelay);
}
} catch (InterruptedException ex) {
assert true; // ok... we'll exit now