Browse Source

Improved lock store.

pull/350/head
Sebastian Stehle 8 years ago
parent
commit
11f4c006a3
  1. 11
      src/Squidex.Infrastructure/Log/LockingLogStore.cs

11
src/Squidex.Infrastructure/Log/LockingLogStore.cs

@ -52,10 +52,17 @@ namespace Squidex.Infrastructure.Log
break; break;
} }
await Task.Delay(2000, cts.Token); try
{
await Task.Delay(2000, cts.Token);
}
catch (TaskCanceledException)
{
break;
}
} }
if (!cts.IsCancellationRequested) if (releaseToken != null)
{ {
try try
{ {

Loading…
Cancel
Save