/** \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;
 }
Ejemplo n.º 2
0
 bool
 hasSubscriber() const override
 {
   return !onNotification.isEmpty();
 }