diff --git a/source/ch/cyberduck/core/ftp/FTPPath.java b/source/ch/cyberduck/core/ftp/FTPPath.java index fe98ba15567..8bfc5aa76a0 100644 --- a/source/ch/cyberduck/core/ftp/FTPPath.java +++ b/source/ch/cyberduck/core/ftp/FTPPath.java @@ -938,11 +938,11 @@ public boolean run() throws IOException { upload(out, in, throttle, listener, status); } finally { + IOUtils.closeQuietly(in); + IOUtils.closeQuietly(out); if(!getSession().getClient().completePendingCommand()) { throw new FTPException(getSession().getClient().getReplyString()); } - IOUtils.closeQuietly(in); - IOUtils.closeQuietly(out); } return true; }