Commit e6836144 authored by Lukas Appelhans's avatar Lukas Appelhans
Browse files

Fix deadlock

parent 6dc8bae6
......@@ -900,7 +900,9 @@ Delta* Package::retrieveDeltaFrom(const Version &version)
{
Q_D(const Package);
QReadLocker locker(d->mutex);
locker.unlock();
retrieveDeltas();
locker.relock();
foreach (Delta *del, d->deltaCache.values()) {
if (Version(del->versionFrom()) == version)
return del;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment