mirror of
https://github.com/upa/mscp.git
synced 2026-02-15 09:44:43 +08:00
skip sftp_free() inappropriately
This commit is contained in:
@@ -487,12 +487,8 @@ out:
|
||||
void mscp_copy_thread_cleanup(void *arg)
|
||||
{
|
||||
struct mscp_thread *t = arg;
|
||||
if (t->sftp) {
|
||||
/* XXX: sftp_free --> ssh_poll sometimes blocked with
|
||||
* no responses. So wet nonblocking. */
|
||||
ssh_set_blocking(sftp_ssh(t->sftp), 1);
|
||||
if (t->sftp)
|
||||
ssh_sftp_close(t->sftp);
|
||||
}
|
||||
t->finished = true;
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user