X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=dbb8a5e2244258854f1102fa6d4128e705fbd3e9;hp=a0e8c179e58d0be375bd9fe0b0caa2c46ac98020;hb=50b6749c57fab7941f513087d4209d676ae0f6bf;hpb=b9828e0dd235964b8e2e97f844f4bed3476d3bd4 diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index a0e8c179..dbb8a5e2 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -106,7 +106,7 @@ public slots: Server usedServer() const; - inline void resetPingTimeout() { _lastPingTime = 0; } + inline void resetPingTimeout() { _pingCount = 0; } inline void displayMsg(Message::Type msgType, BufferInfo::Type bufferType, const QString &target, const QString &text, const QString &sender = "", Message::Flags flags = Message::None) { emit displayMsg(networkId(), msgType, bufferType, target, text, sender, flags); @@ -182,6 +182,8 @@ private: QTimer _pingTimer; uint _lastPingTime; + uint _maxPingCount; + uint _pingCount; bool _autoWhoEnabled; QStringList _autoWhoQueue;