Browse Source

Deadlock fixed

pull/141/head
Sebastian 9 years ago
parent
commit
11592faa35
  1. 7
      src/Squidex.Infrastructure/CQRS/Events/Actors/EventConsumerActor.cs

7
src/Squidex.Infrastructure/CQRS/Events/Actors/EventConsumerActor.cs

@ -290,14 +290,15 @@ namespace Squidex.Infrastructure.CQRS.Events.Actors
} }
} }
private async Task UnsubscribeThisAsync() private Task UnsubscribeThisAsync()
{ {
if (eventSubscription != null) if (eventSubscription != null)
{ {
await eventSubscription.StopAsync(); eventSubscription.StopAsync().Forget();
eventSubscription = null; eventSubscription = null;
} }
return TaskHelper.Done;
} }
private Task SubscribeThisAsync(string position) private Task SubscribeThisAsync(string position)

Loading…
Cancel
Save