private void onConnectFailed(){
        LOGGER.info("Socket failed");
        isConnecting = false;
        isConnected = false;
        cleanup();
        synchronized(connectHolder){
            connectHolder.notifyAll();
        }
    }
private void onConnectFailed ( ) { LOGGER . info ( "Socket failed" ) ; isConnecting = false ; isConnected = false ; cleanup ( ) ; synchronized ( connectHolder ) { connectHolder . notifyAll ( ) ; } }
On the socket connect failed.