X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=3fd0a1a70431242c5f8c5b998ad657642ef87c53;hp=87f1484a7b9beb2ab6cb9c650bda9acaa2ff33ee;hb=bb6f47baf3c9fe605db67de9ff6ca5b3f50d02e3;hpb=2cf99193317f0c970422f6be61ac6efa658b0006 diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 87f1484a..3fd0a1a7 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -438,7 +438,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!";