From 7ab3a0d78dbbb373ab1c55fb9a0295c46720ad9b Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 5 Aug 2007 14:43:58 +0000 Subject: Try this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7663 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ssl_openssl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 0dfc9dd29..00c4c5fa3 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -549,6 +549,7 @@ class ModuleSSLOpenSSL : public Module } session->outbuf.append(buffer, count); + MakePollWrite(session); if (session->status == ISSL_HANDSHAKING) { @@ -589,8 +590,6 @@ class ModuleSSLOpenSSL : public Module } else if (ret < 0) { - MakePollWrite(session); - int err = SSL_get_error(session->sess, ret); if (err == SSL_ERROR_WANT_WRITE) @@ -612,7 +611,6 @@ class ModuleSSLOpenSSL : public Module else { session->outbuf = session->outbuf.substr(ret); - MakePollWrite(session); return ret; } } -- cgit v1.2.3