From c4f16523b4e8a7caa4ed5649dc42155bfbb44ece Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Fri, 29 Nov 2019 14:44:06 +0100 Subject: [PATCH] don't re-use connection objects on windows and mac either (#10576) * don't re-use connection objects on windows and mac either * Update 3rdParty/fuerte/src/GeneralConnection.cpp Co-Authored-By: Simon --- 3rdParty/fuerte/src/GeneralConnection.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/3rdParty/fuerte/src/GeneralConnection.cpp b/3rdParty/fuerte/src/GeneralConnection.cpp index c6ae93918d..6c71bd8b21 100644 --- a/3rdParty/fuerte/src/GeneralConnection.cpp +++ b/3rdParty/fuerte/src/GeneralConnection.cpp @@ -75,12 +75,10 @@ void GeneralConnection::shutdownConnection(const Error err, auto state = _state.load(); if (state != Connection::State::Failed) { state = Connection::State::Disconnected; -#ifdef __linux__ - // hack to fix SSL streams on linux - if (_config._socketType == SocketType::Ssl) { + // hack to fix SSL streams + if constexpr (ST == SocketType::Ssl) { state = Connection::State::Failed; } -#endif _state.store(state); }