protected void safeQuit() { try { if (ftpClient.connected()) { ftpClient.quit(); } } catch (Exception e) { try { ftpClient.quitImmediately(); } catch (Exception ignore) { } } }
/* (non-Javadoc) * @see com.aptana.ide.core.ftp.BaseFTPConnectionFileManager#checkConnected() */ @Override protected void checkConnected() throws Exception { if (ftpClient.connected()) { try { ftpClient.noOperation(); return; } catch (FTPConnectionClosedException e) { } catch (FTPException ignore) { return; } catch (IOException e) { } ftpClient.quitImmediately(); } }
/* (non-Javadoc) * @see com.aptana.ide.core.io.vfs.IConnectionFileManager#isConnected() */ public boolean isConnected() { return ftpClient != null && ftpClient.connected(); }