From 86f2c9d3509691f68f521e48058f3184bc20af61 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 15 Feb 2017 23:10:18 +0100 Subject: [PATCH] Always release socket to allow consecutive HTTPS connections --- src/http/qhttp/private/qhttpclient_private.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/http/qhttp/private/qhttpclient_private.hpp b/src/http/qhttp/private/qhttpclient_private.hpp index c51c9bbac..3206da5f3 100644 --- a/src/http/qhttp/private/qhttpclient_private.hpp +++ b/src/http/qhttp/private/qhttpclient_private.hpp @@ -62,15 +62,13 @@ public: } void initializeSocket() { - if ( isocket.isOpen() ) { - // no need to reconnect. do nothing and simply return - if ( ikeepAlive ) - return; + // no need to reconnect. do nothing and simply return + if ( ikeepAlive ) + return; - // close previous connection now! - // instead being called by emitted disconnected signal - release(); - } + // close previous connection now! + // instead being called by emitted disconnected signal + release(); ikeepAlive = false;