@Override public void stop() throws ServiceException { try { sshServer.stop(); } catch (Exception e) { // no-op } }
@Override public void stop() { try { isRunning = false; sshd.stop(true); } catch (InterruptedException e) { throw new RuntimeException(e); } }
public void stop() { if (!isRunning()) { return; } try { sshd.stop(true); } catch (InterruptedException e) { // ignore } sshd = null; running = false; }
@Override protected void tearDown() throws Exception { super.tearDown(); sshd.stop(true); sshd = null; }
@After public void cleanup() throws Exception { if (sshServer != null) { sshServer.stop(true); } }