When a deferred handler is in error state, registering a finalize callback should also cause it to be called immediately
This commit is contained in:
parent
ce80a971d7
commit
7a11c23f03
|
|
@ -243,6 +243,9 @@ public:
|
|||
// store callback
|
||||
_finalizeCallback = callback;
|
||||
|
||||
// if the object is already in a failed state, we call the callback right away
|
||||
if (_failed) callback();
|
||||
|
||||
// allow chaining
|
||||
return *this;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue