about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTFTP.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-08-13 13:40:41 -0400
committerThomas E. Dickey <dickey@invisible-island.net>1999-08-13 13:40:41 -0400
commitfde43024bd6579b609526faf94dcdbcb6f2bc5e1 (patch)
tree1d4accd9602108b3cc2693d6c0093469274cc332 /WWW/Library/Implementation/HTFTP.c
parent9c512bbadc47a7de000f53f11a7620d83ca0ddba (diff)
downloadlynx-snapshots-fde43024bd6579b609526faf94dcdbcb6f2bc5e1.tar.gz
snapshot of project "lynx", label v2-8-3dev_6
Diffstat (limited to 'WWW/Library/Implementation/HTFTP.c')
-rw-r--r--WWW/Library/Implementation/HTFTP.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTFTP.c b/WWW/Library/Implementation/HTFTP.c
index 208020da..32349c8a 100644
--- a/WWW/Library/Implementation/HTFTP.c
+++ b/WWW/Library/Implementation/HTFTP.c
@@ -2751,7 +2751,7 @@ unload_btree:
 					       entry_info->size);
 		    else
 			sprintf(string_buffer, "%6d Kb",
-					        entry_info->size/1024);
+						entry_info->size/1024);
 #else
 		    if (entry_info->size < 1024)
 			sprintf(string_buffer, "  %d bytes",
@@ -2776,10 +2776,13 @@ unload_btree:
     FREE(lastpath);
 
     if (server_type == APPLESHARE_SERVER ||
-	server_type == NETPRESENZ_SERVER) {
+	server_type == NETPRESENZ_SERVER ||
+	WasInterrupted)			    {
 	/*
 	 *  Without closing the data socket first,
 	 *  the response(NIL) below hangs. - KW
+	 *  Seems to also be needed if the xfer
+	 *  was interrupted ("z" or ^G).  - KED
 	 */
 	NETCLOSE(data_soc);
     }
@@ -2819,12 +2822,12 @@ PUBLIC int HTFTPLoad ARGS4(
     int retry;			/* How many times tried? */
     HTFormat format;
 
-
     /* set use_list to NOT since we don't know what kind of server
      * this is yet.  And set the type to GENERIC
      */
     use_list = FALSE;
     server_type = GENERIC_SERVER;
+    HTReadProgress(0,0);
 
     for (retry = 0; retry < 2; retry++) { /* For timed out/broken connections */
 	status = get_connection(name, anchor);