Changeset 7854 in ntrip for trunk/BNC/src/bncmain.cpp


Ignore:
Timestamp:
Apr 7, 2016, 9:46:49 AM (8 years ago)
Author:
stuerze
Message:

minor changes to allow a clean end of program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmain.cpp

    r7841 r7854  
    5757using namespace std;
    5858
     59
    5960void catch_signal(int) {
    6061  cout << "Program Interrupted by Ctrl-C" << endl;
    61   exit(0);
     62  qApp->quit();
    6263}
    6364
     
    497498    delete bncWin;
    498499  }
     500  else {
     501    BNC_CORE->stopPPP();
     502    BNC_CORE->stopCombination();
     503  }
    499504  if (caster) {
    500     delete caster;
     505    delete caster; caster = 0; BNC_CORE->setCaster(0);
    501506  }
    502507  if (casterEph) {
    503     delete casterEph;
     508    delete casterEph; casterEph = 0;
    504509  }
    505510  if (rawFile) {
Note: See TracChangeset for help on using the changeset viewer.