1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix: increase faux offline message timeout

Should make problem with duplicated messages less common.
Related to #2726.
This commit is contained in:
Zetok Zalbavar 2016-03-23 10:48:31 +00:00
parent 990a50f1ca
commit 76d8e19320
No known key found for this signature in database
GPG Key ID: C953D3880212068A
2 changed files with 5 additions and 1 deletions

View File

@ -26,7 +26,7 @@
#include <QMutexLocker>
#include <QTimer>
const int OfflineMsgEngine::offlineTimeout = 2000;
const int OfflineMsgEngine::offlineTimeout = 20000;
QMutex OfflineMsgEngine::globalMutex;
OfflineMsgEngine::OfflineMsgEngine(Friend *frnd) :

View File

@ -57,6 +57,10 @@ private:
QHash<int, int64_t> receipts;
QMap<int64_t, MsgPtr> undeliveredMsgs;
// timeout after which faux offline messages get to be re-sent
// originally was 2s, but since that was causing lots of duplicated
// messages on receiving end, make qTox be more lazy about re-sending
// should be 20s
static const int offlineTimeout;
};