fix: prevent NullReferenceException in TimeoutController
parent
f48cb4b03e
commit
9b9a4ec76a
|
@ -109,7 +109,7 @@ namespace Cysharp.Threading.Tasks
|
|||
try
|
||||
{
|
||||
// stop timer.
|
||||
timer.Dispose();
|
||||
timer?.Dispose();
|
||||
|
||||
// cancel and dispose.
|
||||
timeoutSource.Cancel();
|
||||
|
|
Loading…
Reference in New Issue