Skip to content

Commit 4e620c3

Browse files
committed
Restore RemoveTopicSubscriptionAsync for two-phase dispose lifecycle
1 parent 8854e1c commit 4e620c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Foundatio.AWS/Messaging/SQSMessageBus.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ await _sqsClient.Value.SetQueueAttributesAsync(new SetQueueAttributesRequest
383383
}
384384
}
385385

386-
protected override async Task CleanupAsync()
386+
protected override async Task RemoveTopicSubscriptionAsync()
387387
{
388388
if (_subscriberCts is not null)
389389
{
@@ -416,7 +416,10 @@ protected override async Task CleanupAsync()
416416
_logger.LogWarning(ex, "Error waiting for subscriber task to complete during dispose");
417417
}
418418
}
419+
}
419420

421+
protected override async Task CleanupAsync()
422+
{
420423
_subscriberCts?.Dispose();
421424

422425
if (!String.IsNullOrEmpty(_subscriptionArn) && _snsClient.IsValueCreated)

0 commit comments

Comments
 (0)