gerrithudsontrigger/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/PluginImpl.java
/**
     * Stops the connection to Gerrit stream of events.
     *
     * @throws Exception if it is so unfortunate.
     */
Stops the connection to Gerrit stream of events.
@throws Exception if it is so unfortunate.
Stops the connection to Gerrit stream of events . @throws Exception if it is so unfortunate .
public synchronized void stopConnection() throws Exception {
        if (gerritEventManager != null) {
            savedEventListeners = null;
            savedConnectionListeners = null;
            gerritEventManager.shutdown(true);
            savedEventListeners = gerritEventManager.removeAllEventListeners();
            savedConnectionListeners = gerritEventManager.removeAllConnectionListeners();
            gerritEventManager = null;
        } else {
            logger.warn("Was told to shutdown again!?");
        }
    }
public synchronized void stopConnection ( ) throws Exception { if ( gerritEventManager != null ) { savedEventListeners = null ; savedConnectionListeners = null ; gerritEventManager . shutdown ( true ) ; savedEventListeners = gerritEventManager . removeAllEventListeners ( ) ; savedConnectionListeners = gerritEventManager . removeAllConnectionListeners ( ) ; gerritEventManager = null ; } else { logger . warn ( "Was told to shutdown again!?" ) ; } }
Stops the connection to Gerrit stream of events.
Stops the connection to Gerrit stream of events .