diff src/gtk/transfer.c @ 84:7ef60ce2bdb2

2002-12-29 Brian Masney <masneyb@gftp.org> * lib/ssh.c lib/config_file.c lib/Makefile.am lib/gftp.h lib/options.h - removed old legacy SSH protocol and option to enable this protocol * lib/gftp.h - added GFTP_ERETRYABLE and GFTP_EFATAL error codes * lib/bookmark.c lib/local.c lib/protocols.c lib/rfc959.c lib/rfc2068.c lib/sshv2.c - return new error codes instead of -1 or -2 * lib/misc.c (gftp_*_sort_function_ds) - changed return values * src/gtk/transfer.c (connect_thread) - if return value of gftp_connect() is GFTP_EFATAL, don't attempt to retry the connection
author masneyb
date Sun, 29 Dec 2002 15:16:27 +0000
parents fe308e435ed5
children 759c7d019a89
line wrap: on
line diff
--- a/src/gtk/transfer.c	Fri Dec 27 14:59:50 2002 +0000
+++ b/src/gtk/transfer.c	Sun Dec 29 15:16:27 2002 +0000
@@ -259,11 +259,19 @@
       conn_num++;
       if (request->network_timeout > 0)
         alarm (request->network_timeout);
-      ret = gftp_connect (request) == 0;
+      ret = gftp_connect (request);
       alarm (0);
 
-      if (ret)
-        break;
+      if (ret == GFTP_EFATAL)
+        {
+          ret = 0;
+          break;
+        }
+      else if (ret == 0)
+        {
+          ret = 1;
+          break;
+        }
       else if (request->retries == 0 || conn_num < request->retries)
         {
           request->logging_function (gftp_logging_misc, request->user_data,