fix: prevent NullReferenceException in TimeoutController

master
KOGA Mitsuhiro 2022-09-08 15:08:50 +09:00
parent f48cb4b03e
commit 9b9a4ec76a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ namespace Cysharp.Threading.Tasks
try
{
// stop timer.
timer.Dispose();
timer?.Dispose();
// cancel and dispose.
timeoutSource.Cancel();