some workaround about disconnection segfault

This commit is contained in:
Blue 2020-04-19 16:13:15 +03:00
parent 9c855553c5
commit 55ae5858b5
4 changed files with 55 additions and 21 deletions

View file

@ -518,3 +518,13 @@ Shared::VCard Core::RosterItem::handleResponseVCard(const QXmppVCardIq& card, co
return vCard;
}
void Core::RosterItem::clearArchiveRequests()
{
syncronizing = false;
requestedCount = 0;
requestedBefore = "";
hisoryCache.clear();
responseCache.clear();
appendCache.clear();
requestCache.clear();
}