@exception IOException If an error occurs while disconnecting.
7475767778798081828384
reply = ftp1.getReplyCode(); if (!FTPReply.isPositiveCompletion(reply)) { ftp1.disconnect(); System.err.println("FTP server1 refused connection."); System.exit(1); } } catch (IOException e)
8586878889909192939495
{ if (ftp1.isConnected()) { try { ftp1.disconnect(); } catch (IOException f) { // do nothing }
185186187188189190191192193194195
try { if (ftp1.isConnected()) { ftp1.logout(); ftp1.disconnect(); } } catch (IOException e) { // do nothing
20152016201720182019202020212022202320242025
} finally { if (ftp != null && ftp.isConnected()) { try { log("disconnecting", Project.MSG_VERBOSE); ftp.logout(); ftp.disconnect(); } catch (IOException ex) { // ignore it } } }
949596979899100101102103104
105106107108109110111112113114115
209210211212213214215216217218219
256257258259260261262263264265266
// success. reply = ftp.getReplyCode(); if (!FTPReply.isPositiveCompletion(reply)) { ftp.disconnect(); System.err.println("FTP server refused connection."); System.exit(1); } } catch (IOException e)
267268269270271272273274275276277
{ if (ftp.isConnected()) { try { ftp.disconnect(); } catch (IOException f) { // do nothing }
426427428429430431432433434435436