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