diff --git a/include/distr_queue.h b/include/distr_queue.h index ac38dfa4..1eaa644a 100644 --- a/include/distr_queue.h +++ b/include/distr_queue.h @@ -150,7 +150,7 @@ class [[deprecated("Use celerity::queue instead")]] distr_queue { // ~distr_queue() guarantees that all operations on that particular queue have finished executing, which we simply guarantee by waiting on all // operations on all live queues. - if(detail::runtime::has_instance()) { detail::runtime::get_instance().sync(detail::epoch_action::none); } + detail::runtime::get_instance().sync(detail::epoch_action::none); } }; diff --git a/include/queue.h b/include/queue.h index d58e2f4b..989fedb9 100644 --- a/include/queue.h +++ b/include/queue.h @@ -112,7 +112,7 @@ class queue { // ~queue() guarantees that all operations on that particular queue have finished executing, which we simply guarantee by waiting on all operations // on all live queues. - if(detail::runtime::has_instance()) { detail::runtime::get_instance().sync(detail::epoch_action::none); } + detail::runtime::get_instance().sync(detail::epoch_action::none); } };