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