mirror of
https://github.com/Cysharp/UniTask.git
synced 2026-05-23 16:20:21 +00:00
fix: prevent NullReferenceException in TimeoutController
This commit is contained in:
@@ -109,7 +109,7 @@ namespace Cysharp.Threading.Tasks
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// stop timer.
|
// stop timer.
|
||||||
timer.Dispose();
|
timer?.Dispose();
|
||||||
|
|
||||||
// cancel and dispose.
|
// cancel and dispose.
|
||||||
timeoutSource.Cancel();
|
timeoutSource.Cancel();
|
||||||
|
|||||||
Reference in New Issue
Block a user