]> sjero.net Git - wget/blobdiff - src/ftp.c
[svn] Hrvoje didn't regenerate the .info files after changing wget.texi.
[wget] / src / ftp.c
index e5a2925e4466bb9b6e483b07dfd8010260a8d129..a5473916650b93877d5ce7fbfc61e125f8cbf69e 100644 (file)
--- a/src/ftp.c
+++ b/src/ftp.c
@@ -855,13 +855,17 @@ ftp_loop_internal (struct urlinfo *u, struct fileinfo *f, ccon *con)
         retrieval).
         Check if we are retrying or not, wait accordingly - HEH */
       if (!first_retrieval && (opt.wait || (count && opt.waitretry)))
-       if (count)
-         if (count<opt.waitretry)
-           sleep(count);
+       {
+         if (count)
+           {
+             if (count<opt.waitretry)
+               sleep(count);
+             else
+               sleep(opt.waitretry);
+           }
          else
-           sleep(opt.waitretry);
-       else
-         sleep (opt.wait);
+           sleep (opt.wait);
+       }
       if (first_retrieval)
        first_retrieval = 0;
       if (con->st & ON_YOUR_OWN)