diff src/gtk/transfer.c @ 67:aa971a4bb16f

2002-11-27 Brian Masney <masneyb@gftp.org> * Officially release 2.0.14rc1 * lib/cache.c - take out a warning message * lib/misc.c lib/protocols.c lib/gftp.h lib/gtk/dnd.c lib/transfer.c - add second argument (free_request) to gftp_request_destroy * lib/protocols.c (gftp_parse_url) - make sure the request structure is cleared before we start to modify it * src/gtk/gftp-text.c - fixed crash if you didn't enter a username
author masneyb
date Wed, 27 Nov 2002 14:29:57 +0000
parents cd3e457cbc85
children e2b30d0c97a4
line wrap: on
line diff
--- a/src/gtk/transfer.c	Wed Nov 27 02:23:51 2002 +0000
+++ b/src/gtk/transfer.c	Wed Nov 27 14:29:57 2002 +0000
@@ -998,8 +998,8 @@
             {
               if (!copy_req)
                 {
-                  gftp_request_destroy (fromreq);
-                  gftp_request_destroy (toreq);
+                  gftp_request_destroy (fromreq, 1);
+                  gftp_request_destroy (toreq, 1);
                 }
               fromreq = NULL;
               toreq = NULL;
@@ -1405,7 +1405,7 @@
     {
       fromreq = tdata->fromwdata != NULL ? ((gftp_window_data *) tdata->fromwdata)->request : NULL;
       if (!tdata->fromreq->stopable && tdata->fromwdata &&
-          fromreq->sockfd < 0 && fromreq->cached &&
+          ((fromreq->sockfd < 0 && fromreq->cached) || fromreq->always_connected) &&
           (tdata->fromreq->sockfd > 0 || tdata->fromreq->always_connected) &&
           compare_request (tdata->fromreq, fromreq, 0))
 	{