projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Socket options require Qt 4.6+
[quassel.git]
/
src
/
core
/
corenetwork.cpp
diff --git
a/src/core/corenetwork.cpp
b/src/core/corenetwork.cpp
index
87f1484
..
3fd0a1a
100644
(file)
--- 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 (server.useSsl && !socket.isEncrypted())
return;
#endif
-
+#if QT_VERSION >= 0x040600
+ socket.setSocketOption(QAbstractSocket::KeepAliveOption, true);
+#endif
CoreIdentity *identity = identityPtr();
if (!identity) {
qCritical() << "Identity invalid!";
CoreIdentity *identity = identityPtr();
if (!identity) {
qCritical() << "Identity invalid!";