Skip to content

Commit

Permalink
Move blob reference from server into try
Browse files Browse the repository at this point in the history
  • Loading branch information
richorama committed Jul 21, 2016
1 parent 16064e8 commit a2bb7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AzureDirectory/AzureLock.cs
Expand Up @@ -25,9 +25,9 @@ public AzureLock(string lockFile, AzureDirectory directory)
#region Lock methods
override public bool IsLocked()
{
var blob = _azureDirectory.BlobContainer.GetBlobReferenceFromServer(_lockFile);
try
{
var blob = _azureDirectory.BlobContainer.GetBlobReferenceFromServer(_lockFile);
Debug.Print("IsLocked() : {0}", _leaseid);
if (String.IsNullOrEmpty(_leaseid))
{
Expand All @@ -53,9 +53,9 @@ override public bool IsLocked()

public override bool Obtain()
{
var blob = _azureDirectory.BlobContainer.GetBlockBlobReference(_lockFile);
try
{
var blob = _azureDirectory.BlobContainer.GetBlockBlobReference(_lockFile);
Debug.Print("AzureLock:Obtain({0}) : {1}", _lockFile, _leaseid);
if (String.IsNullOrEmpty(_leaseid))
{
Expand Down

0 comments on commit a2bb7aa

Please sign in to comment.