summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 4c147c1..303d486 100644
--- a/src/main.c
+++ b/src/main.c
@@ -416,6 +416,7 @@ void mscp_copy_thread_cleanup(void *arg)
if (t->sftp)
ssh_sftp_close(t->sftp);
t->finished = true;
+ __sync_synchronize();
}
void *mscp_copy_thread(void *arg)