Changeset 5414 in ntrip


Ignore:
Timestamp:
Sep 10, 2013, 4:47:50 PM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/map_stations
Files:
3 edited

Legend:

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

    r5410 r5414  
    107107  delete _mapPlot;
    108108  delete _buttonWhatsThis;
     109  _thriftClient->stop();
    109110}
    110111
  • 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
  • trunk/GnssCenter/map_stations/thriftclient.h

    r5410 r5414  
    2121  ~t_thriftClient();
    2222  virtual void run();
     23  void stop() {_stop = true;}
    2324
    2425  void startDataStream() {}
     
    4344
    4445  std::map<std::string, t_stationCrd> _stationCrd;
     46  bool _stop;
    4547};
    4648
Note: See TracChangeset for help on using the changeset viewer.