fix: Dispose subscription in TopOfBookQuoter demo
This commit is contained in:
1 parent
84d74a7873
commit
5fcbb6b8b3
1 file changed
+1
@@ -151,6 +151,7 @@ class TopOfBookQuoter : IHostedService {
|
||||
|
||||
public Task StopAsync(CancellationToken cancellationToken) {
|
||||
logger.LogInformation("RequoteTopOfBookDemo stopping");
|
||||
Disposable.Dispose(ref subscription);
|
||||
logger.LogInformation("RequoteTopOfBookDemo stopped");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user