Skip to content

Commit

Permalink
[qtcontacts-sqlite] Workaround issue with QWaitCondition. Contributes…
Browse files Browse the repository at this point in the history
… to MER#1853

QWaitCondition::wait() will immediately return false on 64bit
architectures if the timeout value is greater than MAX_INT.
https://bugreports.qt.io/browse/QTBUG-54625
  • Loading branch information
mardy committed Nov 14, 2017
1 parent 3f3577e commit e411353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/contactsengine.cpp
Expand Up @@ -611,7 +611,7 @@ class JobThread : public QThread
bool waitForFinished(QContactAbstractRequest *request, const int msecs)
{
long timeout = msecs <= 0
? LONG_MAX
? INT32_MAX
: msecs;

Job *finishedJob = 0;
Expand Down

0 comments on commit e411353

Please sign in to comment.