is still running rather than relying on ssh_sftp_loop_iteration() to
return a bogus value.
git-svn-id: http://svn.tartarus.org/sgt/putty@6803
cda61777-01e9-0310-a592-
d414129be87e
}
while (outlen > 0) {
- if (ssh_sftp_loop_iteration() < 0)
+ if (back->exitcode(backhandle) >= 0 || ssh_sftp_loop_iteration() < 0)
return 0; /* doom */
}
}
while (outlen > 0) {
- if (ssh_sftp_loop_iteration() < 0)
+ if (back->exitcode(backhandle) >= 0 || ssh_sftp_loop_iteration() < 0)
return 0; /* doom */
}