Changeset 5719 in ntrip for trunk/BNC/src/PPP/pppMain.cpp


Ignore:
Timestamp:
Jul 31, 2014, 1:29:23 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5717 r5719  
    5656//////////////////////////////////////////////////////////////////////////////
    5757t_pppMain::~t_pppMain() {
     58  stop();
    5859}
    5960
     
    6162//////////////////////////////////////////////////////////////////////////////
    6263void t_pppMain::start() {
    63   cout << "t_pppMain::start" << endl;
     64  if (_running) {
     65    return;
     66  }
     67
    6468  readOptions();
     69
     70  QListIterator<QSharedPointer<t_options> > it(_options);
     71  while (it.hasNext()) {
     72    QSharedPointer<t_options> opt = it.next();
     73    t_pppThread* pppThread = new t_pppThread(opt);
     74    _running = true;
     75  }
    6576}
    6677
     
    6879//////////////////////////////////////////////////////////////////////////////
    6980void t_pppMain::stop() {
    70   cout << "t_pppMain::stop" << endl;
     81  if (!_running) {
     82    return;
     83  }
     84  _running = false;
    7185}
    7286
Note: See TracChangeset for help on using the changeset viewer.