[0.2.1] Fixed follow-on bug (from a previous revision) where return values would always become orphaned.

This commit is contained in:
Tim Ambrogi
2022-03-11 12:05:21 -05:00
parent 4d989423b0
commit 618997bf87
3 changed files with 9 additions and 3 deletions

View File

@@ -837,7 +837,10 @@ public:
void OnTaskPromiseDestroyed()
{
// Mark the return value as orphaned if it was never set
m_retValState = eTaskRetValState::Orphaned;
if (m_retValState == eTaskRetValState::Unset)
{
m_retValState = eTaskRetValState::Orphaned;
}
}
private: