Skip to content

Commit

Permalink
Fix #7157
Browse files Browse the repository at this point in the history
Former-commit-id: fb25685929478b2a2f2cac5bc7586a0d6fd2e918
  • Loading branch information
dkocher committed Apr 10, 2013
1 parent a87cafe commit ac3696c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/ch/cyberduck/core/ftp/FTPPath.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit ac3696c

Please sign in to comment.