Complete Notifications when Plc is disposed

This commit is contained in:
Peter Butzhammer
2024-02-07 08:51:40 +01:00
parent d678924b6e
commit 956f39cc66
3 changed files with 17 additions and 38 deletions

View File

@@ -85,7 +85,8 @@ namespace Sharp7.Rx.Basics
return;
if (disposing && dictionary != null)
{
dictionary.Values.DisposeItems();
foreach (var subjectWithRefCounter in dictionary)
subjectWithRefCounter.Value.Subject.OnCompleted();
dictionary.Clear();
dictionary = null;
}