* gnutls.c (emacs_gnutls_handshake): Only retry if
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 26 Jun 2012 09:39:52 +0000 (11:39 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 26 Jun 2012 09:39:52 +0000 (11:39 +0200)
GNUTLS_E_INTERRUPTED.

src/ChangeLog
src/gnutls.c

index 68bb4a0..3f874b6 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-26  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gnutls.c (emacs_gnutls_handshake): Only retry if
+       GNUTLS_E_INTERRUPTED.
+
 2012-06-23  Eli Zaretskii  <eliz@gnu.org>
 
        * ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
index 70eea3b..58f628f 100644 (file)
@@ -319,7 +319,7 @@ emacs_gnutls_handshake (struct Lisp_Process *proc)
       ret = fn_gnutls_handshake (state);
       emacs_gnutls_handle_error (state, ret);
     }
-  while (ret < 0 && fn_gnutls_error_is_fatal (ret) == 0);
+  while (ret == GNUTLS_E_INTERRUPTED);
 
   proc->gnutls_initstage = GNUTLS_STAGE_HANDSHAKE_TRIED;