Changeset 5414 in ntrip
- Timestamp:
- Sep 10, 2013, 4:47:50 PM (11 years ago)
- Location:
- trunk/GnssCenter/map_stations
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/map_stations/map_stations.cpp
r5410 r5414 107 107 delete _mapPlot; 108 108 delete _buttonWhatsThis; 109 _thriftClient->stop(); 109 110 } 110 111 -
trunk/GnssCenter/map_stations/thriftclient.cpp
r5409 r5414 17 17 ////////////////////////////////////////////////////////////////////////////// 18 18 t_thriftClient::t_thriftClient() { 19 19 _stop = false; 20 20 } 21 21 … … 23 23 ////////////////////////////////////////////////////////////////////////////// 24 24 t_thriftClient::~t_thriftClient() { 25 26 25 } 27 26 … … 41 40 try { 42 41 transport->open(); 43 while ( processor->process(protocol,protocol,0)) {}42 while (!_stop && processor->process(protocol,protocol,0)) {} 44 43 transport->close(); 45 44 } … … 50 49 cerr << "Unknown exception" << endl; 51 50 } 51 this->terminate(); 52 this->deleteLater(); 52 53 } 53 54 -
trunk/GnssCenter/map_stations/thriftclient.h
r5410 r5414 21 21 ~t_thriftClient(); 22 22 virtual void run(); 23 void stop() {_stop = true;} 23 24 24 25 void startDataStream() {} … … 43 44 44 45 std::map<std::string, t_stationCrd> _stationCrd; 46 bool _stop; 45 47 }; 46 48
Note:
See TracChangeset
for help on using the changeset viewer.