From 0c51857084ab08b949ef403472e66495f436e1d7 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 26 Feb 2015 13:11:50 +0100 Subject: [PATCH] Fix another crash in SocketEvents::Register fixes #8547 --- lib/base/tlsstream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base/tlsstream.cpp b/lib/base/tlsstream.cpp index 7cb08fbe2..65630a828 100644 --- a/lib/base/tlsstream.cpp +++ b/lib/base/tlsstream.cpp @@ -292,6 +292,8 @@ void TlsStream::Close(void) (void) SSL_shutdown(m_SSL.get()); m_SSL.reset(); + SocketEvents::Unregister(); + m_Socket->Close(); m_Eof = true;