diff --git a/fluent/Continuable.h b/fluent/Continuable.h index 6302e45..5d5f9ae 100644 --- a/fluent/Continuable.h +++ b/fluent/Continuable.h @@ -192,13 +192,9 @@ namespace detail // Dispatch everything. if (!_released) { - // log_type(_callback_insert, "invoke chain"); - // Set released to true to prevent multiple calls _released = true; - debug("invoking (once)"); - // Invoke everything with an empty callback _callback_insert(create_empty_callback::create()); } diff --git a/test.cpp b/test.cpp index d73bdaf..5298ae4 100644 --- a/test.cpp +++ b/test.cpp @@ -83,6 +83,7 @@ int main(int /*argc*/, char** /*argv*/) { std::cout << "Pause a callback (void test) " << std::endl; }) + .then(Validate()) .then(CastSpellPromise(3)) .then(CastSpellPromise(4)) .then(CastSpellPromise(5))