From: Andreas Schwab Date: Tue, 26 Jun 2012 09:39:52 +0000 (+0200) Subject: * gnutls.c (emacs_gnutls_handshake): Only retry if X-Git-Url: http://git.hcoop.net/bpt/emacs.git/commitdiff_plain/d01fd55f641198bc7ba5752dd94c06a03ece7b83?ds=sidebyside * gnutls.c (emacs_gnutls_handshake): Only retry if GNUTLS_E_INTERRUPTED. --- diff --git a/src/ChangeLog b/src/ChangeLog index 68bb4a030f..3f874b616c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2012-06-26 Andreas Schwab + + * gnutls.c (emacs_gnutls_handshake): Only retry if + GNUTLS_E_INTERRUPTED. + 2012-06-23 Eli Zaretskii * ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko diff --git a/src/gnutls.c b/src/gnutls.c index 70eea3b0b8..58f628f5d5 100644 --- a/src/gnutls.c +++ b/src/gnutls.c @@ -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;