Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -302,17 +302,21 @@ protected void doDisconnect() throws GenericFileOperationFailedException {
try {
log.trace("Client logout");
client.logout();
client.disconnect();
} catch (IOException e) {
throw new GenericFileOperationFailedException(client.getReplyCode(), client.getReplyString(), e.getMessage(), e);
} finally {
GenericFileOperationFailedException gfo = new GenericFileOperationFailedException(
client.getReplyCode(), client.getReplyString(), e.getMessage(), e);
try {
log.trace("Client disconnect");
client.disconnect();
} catch (IOException e) {
throw new GenericFileOperationFailedException(
client.getReplyCode(), client.getReplyString(), e.getMessage(), e);
} catch (IOException ed) {
log.warn("Failed to disconnect: {}", e.getMessage(), e);
gfo.addSuppressed(ed);
}

throw gfo;
}

clientActivityListener.onDisconnected(endpoint.getConfiguration().remoteServerInformation());
}

Expand Down