Changeset 763 in ntrip for trunk/BNS/bns.cpp


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

* empty log message *

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.