From d01fd55f641198bc7ba5752dd94c06a03ece7b83 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 26 Jun 2012 11:39:52 +0200 Subject: [PATCH] * gnutls.c (emacs_gnutls_handshake): Only retry if GNUTLS_E_INTERRUPTED. --- src/ChangeLog | 5 +++++ src/gnutls.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 68bb4a030fb..3f874b616c6 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 70eea3b0b89..58f628f5d52 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; -- 2.39.2