Skip to content

Commit

Permalink
fix destructor logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanolson committed Dec 14, 2022
1 parent 63deb9c commit 26bae7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/mrc/include/mrc/coroutines/task.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class [[nodiscard]] Task

~Task()
{
if (m_coroutine != nullptr)
if (m_coroutine)
{
m_coroutine.destroy();
}
Expand Down

0 comments on commit 26bae7d

Please sign in to comment.