X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=798f27c8caa064860672ab9cb782bffb8f27f6e8;hp=87f1484a7b9beb2ab6cb9c650bda9acaa2ff33ee;hb=e53fc69a91553b57932ba599b39999d550114588;hpb=2cf99193317f0c970422f6be61ac6efa658b0006 diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 87f1484a..798f27c8 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -185,7 +185,6 @@ void CoreNetwork::connectToIrc(bool reconnecting) enablePingTimeout(); #ifdef HAVE_SSL - socket.setProtocol((QSsl::SslProtocol)server.sslVersion); if (server.useSsl) { CoreIdentity *identity = identityPtr(); if (identity) { @@ -438,7 +437,9 @@ void CoreNetwork::socketInitialized() if (server.useSsl && !socket.isEncrypted()) return; #endif - +#if QT_VERSION >= 0x040600 + socket.setSocketOption(QAbstractSocket::KeepAliveOption, true); +#endif CoreIdentity *identity = identityPtr(); if (!identity) { qCritical() << "Identity invalid!";