[0.2.1] Fixed follow-on bug (from a previous revision) where return values would always become orphaned.
This commit is contained in:
parent
4d989423b0
commit
618997bf87
@ -837,8 +837,11 @@ public:
|
||||
void OnTaskPromiseDestroyed()
|
||||
{
|
||||
// Mark the return value as orphaned if it was never set
|
||||
if (m_retValState == eTaskRetValState::Unset)
|
||||
{
|
||||
m_retValState = eTaskRetValState::Orphaned;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
// Internal state
|
||||
|
@ -3,7 +3,7 @@
|
||||
// Squid::Tasks version (major.minor.patch)
|
||||
#define SQUID_TASKS_VERSION_MAJOR 0
|
||||
#define SQUID_TASKS_VERSION_MINOR 2
|
||||
#define SQUID_TASKS_VERSION_PATCH 0
|
||||
#define SQUID_TASKS_VERSION_PATCH 1
|
||||
|
||||
/// @defgroup Config Configuration
|
||||
/// @brief Configuration settings for the Squid::Tasks library
|
||||
|
@ -852,8 +852,11 @@ public:
|
||||
void OnTaskPromiseDestroyed()
|
||||
{
|
||||
// Mark the return value as orphaned if it was never set
|
||||
if (m_retValState == eTaskRetValState::Unset)
|
||||
{
|
||||
m_retValState = eTaskRetValState::Orphaned;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
// Internal state
|
||||
|
Loading…
x
Reference in New Issue
Block a user