[gvfs] [ftp] This data connection close isn't needed



commit 87741642cd920ef4e48d09755be1cc6db6a0774b
Author: Benjamin Otte <otte gnome org>
Date:   Wed May 13 13:30:02 2009 +0200

    [ftp] This data connection close isn't needed
    
    While it oesn't hurt either, I'm removing it because it violates the
    rule that data connections should be closed before receiving the reply
    indicating the transfer is done on the command connection.
---
 daemon/gvfsbackendftp.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/daemon/gvfsbackendftp.c b/daemon/gvfsbackendftp.c
index 7109607..e434122 100644
--- a/daemon/gvfsbackendftp.c
+++ b/daemon/gvfsbackendftp.c
@@ -2113,7 +2113,6 @@ error2:
   ftp_connection_close_data_connection (conn);
   ftp_connection_receive (conn, 0);
 error:
-  ftp_connection_close_data_connection (conn);
   g_list_foreach (list, (GFunc) g_free, NULL);
   g_list_free (list);
   return NULL;



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