set SO_KEEPALIVE on client sockets
[quassel.git] / src / core / corenetwork.cpp
index 87f1484..206b019 100644 (file)
@@ -439,6 +439,8 @@ void CoreNetwork::socketInitialized()
         return;
 #endif
 
+    socket.setSocketOption(QAbstractSocket::KeepAliveOption, true);
+
     CoreIdentity *identity = identityPtr();
     if (!identity) {
         qCritical() << "Identity invalid!";