[*] Not deprecated enough

This commit is contained in:
Reece Wilson 2023-09-12 21:31:34 +01:00
parent 6181d97c3c
commit d661363247

View File

@ -53,6 +53,6 @@ namespace Aurora::Threading
/// @deprecated
static inline bool WaitFor(IWaitable *pWaitable, AuUInt64 uTimeoutMS)
{
return WaitForAbsNS(pWaitable, AuMSToNS<AuUInt64>(uTimeoutMS) + Time::SteadyClockNS());
return WaitForAbsNS(pWaitable, uTimeoutMS ? AuMSToNS<AuUInt64>(uTimeoutMS) + Time::SteadyClockNS() : 0);
}
}