]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
Call "Dequeue()" for items in AbortTransaction() to fix race
[apt.git] / apt-pkg / acquire-item.cc
index ba1669de0dc889dcaafe86cfeed717ad13f6f496..f684e81f182f0661620fc238e938160879ad80a2 100644 (file)
@@ -1547,7 +1547,10 @@ void pkgAcqMetaBase::AbortTransaction()
          std::clog << "  Cancel: " << (*I)->DestFile << std::endl;
       // the transaction will abort, so stop anything that is idle
       if ((*I)->Status == pkgAcquire::Item::StatIdle)
+      {
          (*I)->Status = pkgAcquire::Item::StatDone;
+         (*I)->Dequeue();
+      }
    }
    Transaction.clear();
 }