diff options
| author | Adam <Adam@anope.org> | 2011-07-31 04:00:35 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-07-31 04:00:35 -0400 |
| commit | f32149117a0b32a26a7695760f29d1a2b10332c5 (patch) | |
| tree | a7b31aaa2a059a69e8dbd013228c5af89cb7f7c2 /modules/extra | |
| parent | 1cb11bba5dd36c2ac1f02e7b49c659de142ce481 (diff) | |
Fixed error message from being unable to connect
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/m_ssl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
