Changeset 763 in ntrip


Ignore:
Timestamp:
Mar 30, 2008, 8:59:49 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r762 r763  
    3737////////////////////////////////////////////////////////////////////////////
    3838t_bns::~t_bns() {
    39   _bnseph->terminate();
    40   _bnseph->wait();
    41   delete _bnseph;
     39  deleteBnsEph();
     40}
     41
     42// Delete bns thread
     43////////////////////////////////////////////////////////////////////////////
     44void t_bns::deleteBnsEph() {
     45  if (_bnseph) {
     46    _bnseph->terminate();
     47    _bnseph->wait();
     48    delete _bnseph;
     49    _bnseph = 0;
     50  }
    4251}
    4352
     
    5362void t_bns::slotError(const QByteArray msg) {
    5463  cerr << msg.data() << endl;
     64  deleteBnsEph();
    5565  emit(error(msg));
    5666}
  • trunk/BNS/bns.h

    r760 r763  
    2323
    2424 private:
     25  void deleteBnsEph();
    2526  t_bnseph* _bnseph;
    2627  QMutex    _mutex;
Note: See TracChangeset for help on using the changeset viewer.