fix: prevent NullReferenceException in TimeoutController

This commit is contained in:
KOGA Mitsuhiro
2022-09-08 15:08:50 +09:00
parent f48cb4b03e
commit 9b9a4ec76a

View File

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