some debug, fix a crash removing a currently selected contact

This commit is contained in:
Blue 2023-11-12 19:55:32 -03:00
parent e31ef78e71
commit 19835af3cf
Signed by: blue
GPG key ID: 9B203B252A63EE38
9 changed files with 40 additions and 14 deletions

View file

@ -368,9 +368,9 @@ void Core::DelayManager::Manager::receivedBundles(const QString& jid, const std:
Job::Id jobId = itr->second;
requestedBundles.erase(itr);
std::map<Job::Id, Job*>::const_iterator jitr = runningJobs.find(jobId);
if (jitr == runningJobs.end()) {
if (jitr == runningJobs.end())
throw JobNotFound(jobId, "receivedBundles");
}
Job* jb = jitr->second;
InfoForUser* job = dynamic_cast<InfoForUser*>(jb);