Skip to content

Commit 9e6d863

Browse files
committed
fix: Dispose cancellation token source in Logger class during disposal
1 parent 133b2b1 commit 9e6d863

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Logger.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public async ValueTask DisposeAsync()
132132
}
133133

134134
await cancellationTokenSource.CancelAsync().ConfigureAwait(false);
135+
cancellationTokenSource.Dispose();
135136
await logMessageProcessingTask.ConfigureAwait(false);
136137

137138
foreach (ILogger childLogger in childLoggers)

0 commit comments

Comments
 (0)