We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CacheState::lock
1 parent 84709f0 commit e41465aCopy full SHA for e41465a
src/cargo/util/cache_lock.rs
@@ -408,7 +408,10 @@ impl CacheState {
408
.lock_exclusive(gctx, DOWNLOAD_EXCLUSIVE_DESCR, blocking)
409
{
410
Ok(LockAcquired) => {}
411
- Ok(WouldBlock) => return Ok(WouldBlock),
+ Ok(WouldBlock) => {
412
+ self.mutate_lock.decrement();
413
+ return Ok(WouldBlock);
414
+ }
415
Err(e) => {
416
self.mutate_lock.decrement();
417
return Err(e);
0 commit comments