diff --git a/iocore/eventsystem/I_Action.h b/iocore/eventsystem/I_Action.h index 643f9a017f6..de193ae19b5 100644 --- a/iocore/eventsystem/I_Action.h +++ b/iocore/eventsystem/I_Action.h @@ -123,7 +123,7 @@ class Action machine. */ - int cancelled = false; + bool cancelled = false; /** Cancels the asynchronous operation represented by this action. @@ -141,14 +141,8 @@ class Action cancel(Continuation *c = nullptr) { ink_assert(!c || c == continuation); -#ifdef DEBUG ink_assert(!cancelled); cancelled = true; -#else - if (!cancelled) { - cancelled = true; - } -#endif } /** @@ -166,14 +160,8 @@ class Action cancel_action(Continuation *c = nullptr) { ink_assert(!c || c == continuation); -#ifdef DEBUG ink_assert(!cancelled); cancelled = true; -#else - if (!cancelled) { - cancelled = true; - } -#endif } Continuation *