Changeset 7976 in ntrip
- Timestamp:
- Jun 30, 2016, 4:58:38 PM (8 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.h
r7300 r7976 71 71 void startPPP(); 72 72 void stopPPP(); 73 int sigintReceived; 73 74 74 75 QMap<int, bncTableItem*> _uploadTableItems; -
trunk/BNC/src/bncgetthread.cpp
r7888 r7976 468 468 QCoreApplication::processEvents(); 469 469 470 if (data.isEmpty() ) {471 cout << "no more data " << endl;470 if (data.isEmpty() || BNC_CORE->sigintReceived) { 471 cout << "no more data or Ctrl-C received" << endl; 472 472 BNC_CORE->stopCombination(); 473 473 BNC_CORE->stopPPP(); -
trunk/BNC/src/bncmain.cpp
r7961 r7976 57 57 using namespace std; 58 58 59 60 59 void catch_signal(int) { 61 60 cout << "Program Interrupted by Ctrl-C" << endl; 61 BNC_CORE->sigintReceived = 1; 62 62 qApp->quit(); 63 63 } … … 484 484 // ----------------------------- 485 485 else { 486 BNC_CORE->sigintReceived = 0; 486 487 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 487 488 BNC_CORE->startPPP();
Note:
See TracChangeset
for help on using the changeset viewer.