Delete working now
This commit is contained in:
parent
4f240b128b
commit
8e69c26688
1 changed files with 2 additions and 15 deletions
|
|
@ -609,21 +609,8 @@ bool PipeWireController::destroyLink(uint32_t linkId)
|
||||||
|
|
||||||
unlock();
|
unlock();
|
||||||
|
|
||||||
QElapsedTimer timer;
|
qInfo() << "Link destroy requested:" << linkId;
|
||||||
timer.start();
|
return true;
|
||||||
while (timer.elapsed() < 2000) {
|
|
||||||
{
|
|
||||||
QMutexLocker lock(&m_nodesMutex);
|
|
||||||
if (!m_links.contains(linkId)) {
|
|
||||||
qInfo() << "Link destroyed:" << linkId;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
QThread::msleep(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
qWarning() << "Link destroy requested but ID still present" << linkId;
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QString PipeWireController::dumpGraph() const
|
QString PipeWireController::dumpGraph() const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue