Skip to content

Commit

Permalink
always check completePendingCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed May 19, 2024
1 parent 8e27329 commit 2c5af1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/lucee/runtime/tag/Ftp.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ private AFTPClient actionPutFile() throws IOException, PageException {
finally {
IOUtil.close(is);
}
if (transferMode == FTPConstant.TRANSFER_MODE_BINARY && !client.completePendingCommand()){
if (!client.completePendingCommand()){
throw new ApplicationException("FTP putFile [" + remotefile + "] failed");
}
writeCfftp(client);
Expand Down

0 comments on commit 2c5af1d

Please sign in to comment.