From 018480412aad0648335213faa8699f669df28f82 Mon Sep 17 00:00:00 2001 From: XinyuHou Date: Tue, 21 Apr 2015 16:54:49 +0100 Subject: [PATCH] Stopped retry when fatal error happened in secure socket #4553 --- src/lib/plugin/ns/SecureSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/plugin/ns/SecureSocket.cpp b/src/lib/plugin/ns/SecureSocket.cpp index 2de8261e..0a36daab 100644 --- a/src/lib/plugin/ns/SecureSocket.cpp +++ b/src/lib/plugin/ns/SecureSocket.cpp @@ -297,7 +297,6 @@ SecureSocket::secureConnect(int socket) } else { LOG((CLOG_ERR "failed to verify server certificate fingerprint")); - sendEvent(getEvents()->forISocket().stopRetry()); disconnect(); } } @@ -435,6 +434,7 @@ SecureSocket::getError() void SecureSocket::disconnect() { + sendEvent(getEvents()->forISocket().stopRetry()); sendEvent(getEvents()->forISocket().disconnected()); sendEvent(getEvents()->forIStream().inputShutdown()); }