Changeset 763 in ntrip for trunk/BNS/bns.cpp
- Timestamp:
- Mar 30, 2008, 8:59:49 PM (16 years ago)
- File:
-
- 1 edited
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 }
Note:
See TracChangeset
for help on using the changeset viewer.