/** \brief Check if the subscriber is or should be stopped. * \return true if the subscriber is stopped. */ bool shouldStop() { if (!m_isRunning) return true; if (onNotification.isEmpty() && onNack.isEmpty()) { this->stop(); return true; } return false; }
bool hasSubscriber() const override { return !onNotification.isEmpty(); }