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