java/protoCtrl/src/main/java/com/pravala/protocol/ctrl/SocketMessageManager.java
private void onSocketError ( Link errorLink )
    {
        synchronized ( this )
        {
            if ( errorLink != ctrlLink )
                return;

            // stop() will synchronize as well, but it doesn't hurt us.
            stop();
        }

        socketDisconnected();
    }
/**
     * Internal method for dealing with socket errors.
     * @param errorLink The link which generated an error.
     */
Internal method for dealing with socket errors.
@param errorLink The link which generated an error.
Internal method for dealing with socket errors . @param errorLink The link which generated an error .
private void onSocketError ( Link errorLink )
    {
        synchronized ( this )
        {
            if ( errorLink != ctrlLink )
                return;
            stop();
        }
        socketDisconnected();
    }
private void onSocketError ( Link errorLink ) { synchronized ( this ) { if ( errorLink != ctrlLink ) return ; stop ( ) ; } socketDisconnected ( ) ; }
Internal method for dealing with socket errors.
Internal method for dealing with socket errors .
// stop() will synchronize as well, but it doesn't hurt us.