} catch (InboundConnectionFailure e) {
log.error("Failed to connect to ESL");</BUG>
}
}
public void start() {
<BUG>attemptConnect = true;
Runnable sender = new Runnable() {
public void run() {
while (attemptConnect) {</BUG>
connect();

} catch (InboundConnectionFailure e) {
System.out.println("Failed to connect to ESL");
log.error("Failed to connect to ESL");
}
}
public void start() {
log.info("Starting FreeSWITCH ESL connection manager.");
System.out.println("***************** Starting FreeSWITCH ESL connection manager.");
ConnectThread connector = new ConnectThread();
connectTask = (ScheduledFuture<ConnectThread>) connExec.scheduleAtFixedRate(connector, 5, 5, TimeUnit.SECONDS);
