Example #1
0
  bool Edge::Close(const QString &reason)
  {
    if(_closed) {
      qWarning() << "Edge already closed.";
      return false;
    }
    _closed = true;
    _close_reason = reason;
    
    if(!RequiresCleanup()) {
      CloseCompleted();
    }

    return true;
  }
Example #2
0
 void Edge::OnStop()
 {
   if(!RequiresCleanup()) {
     StopCompleted();
   }
 }