Skip to content

Commit

Permalink
Merge pull request #246 from tonyhallett/fix-disposing-null-token
Browse files Browse the repository at this point in the history
null check
  • Loading branch information
tonyhallett authored Mar 7, 2022
2 parents 89ff040 + 5864480 commit 936aadf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SharedProject/Core/FCCEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ protected virtual void Dispose(bool disposing)
{
if (!this.disposed)
{
if (disposing)
if (disposing && cancellationTokenSource != null)
{
cancellationTokenSource.Dispose();
}
Expand Down

0 comments on commit 936aadf

Please sign in to comment.