224225226227228229230231232233234
/* Disconnect */ finally { try { if (client.isConnected()) client.disconnect(); } catch (IOException e) { throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e)); } }
134135136137138139140141142143144
client.connect(server); if (!NNTPReply.isPositiveCompletion(client.getReplyCode())) { client.disconnect(); System.err.println("NNTP server refused connection."); System.exit(1); } if (client.isAllowedToPost())
156157158159160161162163164165166
fileReader.close(); client.logout(); client.disconnect(); } catch (IOException e) { e.printStackTrace(); System.exit(1);
7071727374757677787980
finally { try { if (client.isConnected()) client.disconnect(); } catch (IOException e) { System.err.println("Error disconnecting from server."); e.printStackTrace();
231232233234235236237238239240241
/* Disconnect */ finally { try { if (client.isConnected()) client.disconnect(); } catch (IOException e) { throw new ConnectionException(Activator.createErrorStatus(e.getMessage(), e)); } }
7374757677787980818283
finally { try { if (client.isConnected()) { client.disconnect(); } } catch (IOException e) { System.err.println("Error disconnecting from server.");
137138139140141142143144145146147
161162163164165166167168169170171
fileReader.close(); } client.logout(); client.disconnect(); } catch (IOException e) { e.printStackTrace(); System.exit(1);
129130131132133134135136137138139
151152153154155156157158159160161