* gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails.
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Feb 2012 17:06:14 +0000 (18:06 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 11 Feb 2012 17:06:14 +0000 (18:06 +0100)
src/ChangeLog
src/gnutls.c

index 30e8170..d18c1b0 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-11  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails.
+
 2012-02-11  Eli Zaretskii  <eliz@gnu.org>
 
        * w32select.c (Fx_selection_exists_p): Sync doc string and
index d7bf0e8..5da84bd 100644 (file)
@@ -363,7 +363,7 @@ emacs_gnutls_write (struct Lisp_Process *proc, const char *buf, EMACS_INT nbyte)
 
       if (rtnval < 0)
        {
-         if (rtnval == GNUTLS_E_AGAIN || rtnval == GNUTLS_E_INTERRUPTED)
+         if (rtnval == GNUTLS_E_INTERRUPTED)
            continue;
          else
            break;