From 130e735e65de8082106a4685f930d64d875d7e6b Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Sun, 27 Nov 2022 19:38:19 +0900 Subject: skip sftp_free() inappropriately --- src/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 738b346..055cbad 100644 --- a/src/main.c +++ b/src/main.c @@ -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(); } -- cgit v1.2.3