[0.2.1] Fixed follow-on bug (from a previous revision) where return values would always become orphaned.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user