summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-11-27 19:38:19 +0900
committerRyo Nakamura <upa@haeena.net>2022-11-27 19:48:13 +0900
commit130e735e65de8082106a4685f930d64d875d7e6b (patch)
treef36b2582cb35f2021dc976637f09ab1787c365b5 /src/main.c
parente3ed4f89d2d49b4ac38e6f59b434300fab0f28bd (diff)
skip sftp_free() inappropriately
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 1 insertions, 5 deletions
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();
}