diff src/gtk/bookmarks.c @ 285:470759f49ba2

2003-10-12 Brian Masney <masneyb@gftp.org> * src/gtk/bookmarks.c - disconnect from the site before we parse the bookmarks (from Aurelien Jarno <lists@aurel32.net>)
author masneyb
date Mon, 13 Oct 2003 00:41:18 +0000
parents 5810b0f97eee
children 3b9d5797050f
line wrap: on
line diff
--- a/src/gtk/bookmarks.c	Mon Oct 13 00:24:06 2003 +0000
+++ b/src/gtk/bookmarks.c	Mon Oct 13 00:41:18 2003 +0000
@@ -41,6 +41,9 @@
       return;
     }
 
+  if (GFTP_IS_CONNECTED (current_wdata->request))
+    disconnect (current_wdata);
+
   if (gftp_parse_bookmark (current_wdata->request, other_wdata->request,
                            (char *) data, &refresh_local) < 0)
     return;
@@ -48,9 +51,6 @@
   if (refresh_local)
     refresh (other_wdata);
 
-  if (GFTP_IS_CONNECTED (current_wdata->request))
-    disconnect (current_wdata);
-
   ftp_connect (current_wdata, current_wdata->request, 1);
 }