TCS cancellations in downloaders now call TrySetCancelled

Multiple Cancel calls threw unnecessary exception otherwise.  Would rather be able to cancel multiple times without worrying about throwing
This commit is contained in:
Justin Swanson 2020-01-04 19:33:00 -06:00
parent e13b000b54
commit 553a3123bd
2 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ namespace Wabbajack.Lib.Downloaders
public override void Cancel()
{
Handled = true;
_source.SetCanceled();
_source.TrySetCanceled();
}
}
}

View File

@ -24,7 +24,7 @@ namespace Wabbajack.Lib.NexusApi
public override void Cancel()
{
Handled = true;
_source.SetCanceled();
_source.TrySetCanceled();
}
}
}