mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
fix deadlock in QNetworkConfigurationManagerPrivate::updateConfigurations()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
9cb1d8e4d0
commit
9fbf4bd652
1 changed files with 2 additions and 4 deletions
|
@ -413,10 +413,8 @@ void QNetworkConfigurationManagerPrivate::updateConfigurations()
|
|||
|
||||
if (firstUpdate) {
|
||||
firstUpdate = false;
|
||||
QList<QBearerEngine*> enginesToInitialize = sessionEngines; //shallow copy the list in case it is modified when we unlock mutex
|
||||
locker.unlock();
|
||||
foreach (QBearerEngine* engine, enginesToInitialize) {
|
||||
QMetaObject::invokeMethod(engine, "initialize", Qt::BlockingQueuedConnection);
|
||||
foreach (QBearerEngine* engine, sessionEngines) {
|
||||
QMetaObject::invokeMethod(engine, "initialize");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue