#3915: Check if in lock

pull/3926/head
Halil İbrahim Kalkan 6 years ago
parent cae569f9c3
commit 48ac4d2bb7

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
@ -42,12 +41,18 @@ namespace Volo.Abp.TextTemplating.VirtualFiles
}
finally
{
_lock.ExitWriteLock();
if (_lock.IsWriteLockHeld)
{
_lock.ExitWriteLock();
}
}
}
finally
{
_lock.ExitUpgradeableReadLock();
if (_lock.IsUpgradeableReadLockHeld)
{
_lock.ExitUpgradeableReadLock();
}
}
}

Loading…
Cancel
Save