@ -195,7 +195,8 @@ namespace Squidex.Infrastructure.CQRS.Events.Actors
private async Task StopAsync(Exception exception = null)
{
await eventSubscription.StopAsync();
eventSubscription.StopAsync().Forget();
await eventConsumerInfoRepository.StopAsync(eventConsumer.Name, exception?.ToString());
}
@ -21,7 +21,7 @@ namespace Squidex.Infrastructure
return aggregateException.InnerExceptions.Count == 1 && Is<T>(aggregateException.InnerExceptions[0]);
return ex is OperationCanceledException;
return ex is T;