diff options
author | Janek Bevendorff <janek@jbev.net> | 2017-02-16 01:10:18 +0300 |
---|---|---|
committer | Janek Bevendorff <janek@jbev.net> | 2017-02-17 04:43:25 +0300 |
commit | 86f2c9d3509691f68f521e48058f3184bc20af61 (patch) | |
tree | 5b1cb445284c43b8849db3198a9653c6c133159b /src/http | |
parent | a0ebbf997d80a16530beacde12f3bc2b8b096e41 (diff) |
Always release socket to allow consecutive HTTPS connections
Diffstat (limited to 'src/http')
-rw-r--r-- | src/http/qhttp/private/qhttpclient_private.hpp | 16 |
1 files changed, 7 insertions, 9 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; - - // close previous connection now! - // instead being called by emitted disconnected signal - release(); - } + // no need to reconnect. do nothing and simply return + if ( ikeepAlive ) + return; + + // close previous connection now! + // instead being called by emitted disconnected signal + release(); ikeepAlive = false; |