Skip to content

Commit 936aadf

Browse files
authored
Merge pull request #246 from tonyhallett/fix-disposing-null-token
null check
2 parents 89ff040 + 5864480 commit 936aadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SharedProject/Core/FCCEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ protected virtual void Dispose(bool disposing)
347347
{
348348
if (!this.disposed)
349349
{
350-
if (disposing)
350+
if (disposing && cancellationTokenSource != null)
351351
{
352352
cancellationTokenSource.Dispose();
353353
}

0 commit comments

Comments
 (0)