forked from mirrors/gio-qt
fix: conditional variable never woke up.
This commit is contained in:
parent
1203a0f839
commit
a15ba2dc73
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ QExplicitlySharedDataPointer<DGioFileInfo> DGioFile::createFileInfo(QString attr
|
|||
});
|
||||
QMutex m;
|
||||
m.lock();
|
||||
bool finished = cond.wait(&m, timeout_msec);
|
||||
bool finished = gmmFileInfo || cond.wait(&m, timeout_msec);
|
||||
m.unlock();
|
||||
if (finished && gmmFileInfo) {
|
||||
QExplicitlySharedDataPointer<DGioFileInfo> fileInfoPtr(new DGioFileInfo(gmmFileInfo.release()));
|
||||
|
|
Loading…
Reference in a new issue