diff options
Diffstat (limited to 'src/lib/util/notifier.h')
-rw-r--r-- | src/lib/util/notifier.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/notifier.h b/src/lib/util/notifier.h index b5dfaaa0f3c..237417e49ab 100644 --- a/src/lib/util/notifier.h +++ b/src/lib/util/notifier.h @@ -91,7 +91,7 @@ public: /// inactive if it is default constructed, reset, transferred away, /// or if the underlying notifier is destructed. /// \return True if the subscription is active, false otherwise. - explicit operator bool() const noexcept { return bool(m_token.lock()); } + explicit operator bool() const noexcept { return !m_token.expired(); } /// \brief Transfer ownership of a subscription /// |