mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fixes #2522
This commit is contained in:
parent
b804544408
commit
dba7a53ec7
|
@ -83,6 +83,7 @@ void OfflineMsgEngine::deliverOfflineMsgs()
|
||||||
|
|
||||||
QMap<int64_t, MsgPtr> msgs = undeliveredMsgs;
|
QMap<int64_t, MsgPtr> msgs = undeliveredMsgs;
|
||||||
removeAllReciepts();
|
removeAllReciepts();
|
||||||
|
undeliveredMsgs.clear();
|
||||||
|
|
||||||
for (auto iter = msgs.begin(); iter != msgs.end(); ++iter)
|
for (auto iter = msgs.begin(); iter != msgs.end(); ++iter)
|
||||||
{
|
{
|
||||||
|
@ -110,5 +111,4 @@ void OfflineMsgEngine::removeAllReciepts()
|
||||||
QMutexLocker ml(&mutex);
|
QMutexLocker ml(&mutex);
|
||||||
|
|
||||||
receipts.clear();
|
receipts.clear();
|
||||||
undeliveredMsgs.clear();
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user