Changeset 763 in ntrip
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r762 r763 37 37 //////////////////////////////////////////////////////////////////////////// 38 38 t_bns::~t_bns() { 39 _bnseph->terminate(); 40 _bnseph->wait(); 41 delete _bnseph; 39 deleteBnsEph(); 40 } 41 42 // Delete bns thread 43 //////////////////////////////////////////////////////////////////////////// 44 void t_bns::deleteBnsEph() { 45 if (_bnseph) { 46 _bnseph->terminate(); 47 _bnseph->wait(); 48 delete _bnseph; 49 _bnseph = 0; 50 } 42 51 } 43 52 … … 53 62 void t_bns::slotError(const QByteArray msg) { 54 63 cerr << msg.data() << endl; 64 deleteBnsEph(); 55 65 emit(error(msg)); 56 66 } -
trunk/BNS/bns.h
r760 r763 23 23 24 24 private: 25 void deleteBnsEph(); 25 26 t_bnseph* _bnseph; 26 27 QMutex _mutex;
Note:
See TracChangeset
for help on using the changeset viewer.