summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-01-16 14:54:38 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-01-16 14:54:38 +0000
commite99915e4275df836079716a2a395cf65213e6638 (patch)
tree1d57b9aada9c7f6f5515ccfca8db3e0ec16b5e0e /src
parent22d0d47d2d51038660f6fe4acffba31142dd3682 (diff)
downloadweechat-e99915e4275df836079716a2a395cf65213e6638.zip
Fixed freeze with SSL server when disconnecting after connection loss (bug #18735)
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c
index 34cb994bb..549350c50 100644
--- a/src/irc/irc-server.c
+++ b/src/irc/irc-server.c
@@ -1092,7 +1092,7 @@ server_close_connection (t_irc_server *server)
{
#ifdef HAVE_GNUTLS
if (server->ssl_connected)
- gnutls_bye (server->gnutls_sess, GNUTLS_SHUT_RDWR);
+ gnutls_bye (server->gnutls_sess, GNUTLS_SHUT_WR);
#endif
close (server->sock);
server->sock = -1;