Changeset 5927 in ntrip for trunk/BNC/src/PPP/pppThread.cpp


Ignore:
Timestamp:
Aug 15, 2014, 9:37:22 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppThread.cpp

    r5906 r5927  
    6161  _pppRun    = 0;
    6262
    63   connect(this, SIGNAL(finished()), this, SLOT(deleteLater()));
    64 
    6563  connect(this, SIGNAL(newMessage(QByteArray,bool)),
    6664          BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
     
    7977  try {
    8078    _pppRun = new t_pppRun(_opt);
     79    connect(_pppRun, SIGNAL(finished()), this, SLOT(slotPPPfinished()));
    8180    if (_opt->_realTime) {
    8281      if (_ownThread) {
     
    8988  }
    9089  catch (t_except exc) {
    91     _pppRun = 0;
     90    delete _pppRun; _pppRun = 0;
    9291    emit newMessage(QByteArray(exc.what().c_str()), true);
    9392  }
    9493}
    9594
     95// Run (virtual)
     96////////////////////////////////////////////////////////////////////////////
     97void t_pppThread::slotPPPfinished() {
     98  delete _pppRun; _pppRun = 0;
     99}
Note: See TracChangeset for help on using the changeset viewer.