Changeset 53:6ed9634453c2 in SMSSender


Ignore:
Timestamp:
Jan 30, 2010 12:36:05 PM (8 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@52
Message:
  • Hope this time the eventloop does not block anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libgateway/src/business/HttpHelper.cpp

    r52 r53  
    152152
    153153    qDebug() << "Waiting for the request to finish...";
    154     while (!request_.finished && thread()->isRunning()) {
     154/*    while (!request_.finished && thread()->isRunning()) {
    155155        thread()->wait(100);
    156     }
     156    }*/
     157    requestLoop_.exec(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers|QEventLoop::WaitForMoreEvents);
    157158    qDebug() << "The request finished -> continuing";
    158159/*    while (!request_.finished) {
    159         qApp->processEvents(QEventLoop::WaitForMore | QEventLoop::ExcludeUserInput);
     160        qApp->processEvents(QEventLoop::Wai)(tForMore | QEventLoop::ExcludeUserInput);
    160161    }
    161162    qDebug() << "Starting request loop";
     
    216217         //qDebug() << requestResult_;
    217218     }
     219
     220     requestLoop_.processEvents();
    218221 }
    219222
Note: See TracChangeset for help on using the changeset viewer.