Skip to content
Permalink
Browse files

Fix: the disposal exceptions (#2209)

  • Loading branch information...
glennawatson committed Oct 13, 2019
1 parent 8fb45dc commit f49731bcb5a57459d7b9aa39751a0e7f2745da08
@@ -106,7 +106,7 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
Interlocked.Exchange(ref _inner, Disposable.Empty).Dispose();
_inner?.Dispose();
_list?.Dispose();
}

@@ -91,7 +91,7 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
Interlocked.Exchange(ref _inner, Disposable.Empty).Dispose();
_inner?.Dispose();
_list?.Dispose();
}

@@ -106,7 +106,7 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
Interlocked.Exchange(ref _inner, Disposable.Empty).Dispose();
_inner?.Dispose();
_list?.Dispose();
}

@@ -84,7 +84,7 @@ protected override void Dispose(bool disposing)
{
if (disposing)
{
Interlocked.Exchange(ref _inner, Disposable.Empty).Dispose();
_inner?.Dispose();
_list?.Dispose();
}

0 comments on commit f49731b

Please sign in to comment.
You can’t perform that action at this time.