Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-02-16 01:10:18 +0300
committerJanek Bevendorff <janek@jbev.net>2017-02-17 04:43:25 +0300
commit86f2c9d3509691f68f521e48058f3184bc20af61 (patch)
tree5b1cb445284c43b8849db3198a9653c6c133159b /src/http
parenta0ebbf997d80a16530beacde12f3bc2b8b096e41 (diff)
Always release socket to allow consecutive HTTPS connections
Diffstat (limited to 'src/http')
-rw-r--r--src/http/qhttp/private/qhttpclient_private.hpp16
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;