From f32149117a0b32a26a7695760f29d1a2b10332c5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 31 Jul 2011 04:00:35 -0400 Subject: Fixed error message from being unable to connect --- modules/extra/m_ssl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/extra/m_ssl.cpp b/modules/extra/m_ssl.cpp index eb723a341..41bc49993 100644 --- a/modules/extra/m_ssl.cpp +++ b/modules/extra/m_ssl.cpp @@ -301,7 +301,7 @@ void SSLSocketIO::Connect(ConnectionSocket *s, const Anope::string &target, int return; } - throw SocketException("Unable to connect to server: " + Anope::string(ERR_error_string(ERR_get_error(), NULL))); + s->ProcessError(); } IO->connected = 1; @@ -326,6 +326,8 @@ int SSLSocketIO::Connected(ConnectionSocket *s) int error = SSL_get_error(IO->sslsock, ret); if (ret == -1 && (error == SSL_ERROR_WANT_READ || error == SSL_ERROR_WANT_WRITE)) return 0; + + s->ProcessError(); return -1; } IO->connected = 1; -- cgit