[gvfs] [FTP] Correctly close finished transfer



commit bd3a204ee656e28deabf5ea28c6d419194d688a9
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Mon Aug 10 15:00:28 2009 +0200

    [FTP] Correctly close finished transfer
    
    Re-add from commit 9c80d1ea68314ccd3b44d3a6c3761b1e42699953

 daemon/gvfsbackendftp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 9f39c71..c0f21be 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -1196,6 +1196,8 @@ ftp_output_stream_splice (GOutputStream *output,
             }
           g_assert_not_reached();
         }
+      if (n_read == 0)
+        break;
 
       p = buffer;
       while (n_read > 0)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]