Fix bug #3139, "Mainwindow unresponsive due to a busy loop"
[claws.git] / src / common / socket.c
index 0245910cf17ac1c8d9220464c449df6e12161672..1d6638d07afe6882493786a3e9a1b2c0c40c4947 100644 (file)
@@ -1417,6 +1417,8 @@ static gint ssl_read(gnutls_session_t ssl, gchar *buf, gint len)
                        return -1;
 
                default:
+                       debug_print("Unexpected SSL read result %d\n", r);
+                       errno = EIO;
                        return -1;
                }
        }