Ignore:
Timestamp:
Sep 10, 2013, 4:47:50 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/map_stations/thriftclient.cpp

    r5409 r5414  
    1717//////////////////////////////////////////////////////////////////////////////
    1818t_thriftClient::t_thriftClient() {
    19 
     19  _stop = false;
    2020}
    2121
     
    2323//////////////////////////////////////////////////////////////////////////////
    2424t_thriftClient::~t_thriftClient() {
    25 
    2625}
    2726
     
    4140  try {
    4241    transport->open();
    43     while (processor->process(protocol,protocol,0)) {}
     42    while (!_stop && processor->process(protocol,protocol,0)) {}
    4443    transport->close();
    4544  }
     
    5049    cerr << "Unknown exception" << endl;
    5150  }
     51  this->terminate();
     52  this->deleteLater();
    5253}
    5354
Note: See TracChangeset for help on using the changeset viewer.