From bd3a204ee656e28deabf5ea28c6d419194d688a9 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 10 Aug 2009 15:00:28 +0200 Subject: [FTP] Correctly close finished transfer Re-add from commit 9c80d1ea68314ccd3b44d3a6c3761b1e42699953 --- daemon/gvfsbackendftp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon/gvfsbackendftp.c') diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c index 9f39c719..c0f21be2 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) -- cgit v1.2.1