mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 12:58:27 +00:00
...
This commit is contained in:
parent
51eb669178
commit
473ae83c8d
1 changed files with 8 additions and 2 deletions
|
@ -96,9 +96,15 @@ namespace SanAndreasUnity.Utilities
|
|||
m_coroutines[coroutineIndex] = null;
|
||||
|
||||
if (isSuccess)
|
||||
F.RunExceptionSafe(coroutine.onFinishSuccess);
|
||||
{
|
||||
if (coroutine.onFinishSuccess != null)
|
||||
F.RunExceptionSafe(coroutine.onFinishSuccess);
|
||||
}
|
||||
else
|
||||
F.RunExceptionSafe(() => coroutine.onFinishError(failureException));
|
||||
{
|
||||
if (coroutine.onFinishError != null)
|
||||
F.RunExceptionSafe(() => coroutine.onFinishError(failureException));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue