Changeset 67:578192d6fe64 in SMSSender for lib/libgateway/src/business/HttpHelper.cpp


Ignore:
Timestamp:
Feb 7, 2010 4:11:28 PM (12 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@66
Message:
  • added synchttp
  • backup before removing these diamond interfaces...
File:
1 edited

Legend:

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

    r53 r67  
    146146}*/
    147147
    148 void HttpHelper::waitForRequest(bool createIfNotExisting /* = true */) {
    149     if (!requestLoop_.isRunning() && !createIfNotExisting){
     148void HttpHelper::waitForRequest(bool createLoopIfNotExisting) {
     149    if (!requestLoop_.isRunning() && !createLoopIfNotExisting){
    150150        return;
    151151    }
    152152
    153153    qDebug() << "Waiting for the request to finish...";
     154    while (!request_.finished && thread()->isRunning()) {
     155        thread()->wait(100);
     156    }
    154157/*    while (!request_.finished && thread()->isRunning()) {
    155158        thread()->wait(100);
    156159    }*/
    157     requestLoop_.exec(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers|QEventLoop::WaitForMoreEvents);
     160//    requestLoop_.exec(QEventLoop::ExcludeUserInputEvents|QEventLoop::ExcludeSocketNotifiers|QEventLoop::WaitForMoreEvents);
    158161    qDebug() << "The request finished -> continuing";
    159162/*    while (!request_.finished) {
Note: See TracChangeset for help on using the changeset viewer.