Always release socket to allow consecutive HTTPS connections

This commit is contained in:
Janek Bevendorff 2017-02-15 23:10:18 +01:00
parent a0ebbf997d
commit 86f2c9d350

View File

@ -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;