[glib-networking] gnutls: Closing an already-closed connection should return TRUE
- From: Olivier Crête <Tester src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] gnutls: Closing an already-closed connection should return TRUE
- Date: Sat, 6 Sep 2014 16:58:11 +0000 (UTC)
commit 6eef612d619629be068e047f8f5931d3be09933d
Author: Olivier Crête <olivier crete collabora com>
Date: Sun Aug 31 12:17:59 2014 -0400
gnutls: Closing an already-closed connection should return TRUE
See the implementation of g_io_stream_close()
https://bugzilla.gnome.org/show_bug.cgi?id=735754
tls/gnutls/gtlsconnection-gnutls.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 063d71c..472f2d8 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1561,10 +1561,8 @@ g_tls_connection_gnutls_close (GIOStream *stream,
if (gnutls->priv->closed)
{
- g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_CLOSED,
- _("Connection is already closed"));
yield_op (gnutls, G_TLS_CONNECTION_GNUTLS_OP_CLOSE);
- return FALSE;
+ return TRUE;
}
if (gnutls->priv->ever_handshaked)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]