Fixing semaphore locking during build finalization

This commit is contained in:
Jonathan Miller 2016-05-02 09:54:10 -07:00
parent 3e690cbbf6
commit 222df674bf

View file

@ -69,7 +69,7 @@ namespace Microsoft.DotNet.Cli.Build
// at the same time and someone already took care of publishing and we have no work to do.
if (AzurePublisherTool.IsLatestSpecifiedVersion(targetVersionFile))
{
AzurePublisherTool.ReleaseLeaseOnBlob(targetContainer, leaseId);
AzurePublisherTool.ReleaseLeaseOnBlob(semaphoreBlob, leaseId);
return c.Success();
}
else
@ -104,7 +104,7 @@ namespace Microsoft.DotNet.Cli.Build
}
finally
{
AzurePublisherTool.ReleaseLeaseOnBlob(targetContainer, leaseId);
AzurePublisherTool.ReleaseLeaseOnBlob(semaphoreBlob, leaseId);
}
}