Changeset 7977 in ntrip
- Timestamp:
- Jun 30, 2016, 5:05:55 PM (8 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bnccore.h
r7300 r7977 71 71 void startPPP(); 72 72 void stopPPP(); 73 int sigintReceived; 73 74 74 75 QMap<int, bncTableItem*> _uploadTableItems; -
branches/BNC_2.12/src/bncgetthread.cpp
r7859 r7977 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(); … … 641 641 #endif 642 642 } 643 644 delete _query; 643 if (_query) { 644 delete _query; 645 } 645 646 if (_ntripVersion == "U") { 646 647 _query = new bncNetQueryUdp(); -
branches/BNC_2.12/src/bncmain.cpp
r7945 r7977 60 60 void catch_signal(int) { 61 61 cout << "Program Interrupted by Ctrl-C" << endl; 62 BNC_CORE->sigintReceived = 1; 62 63 qApp->quit(); 63 64 } … … 483 484 // ----------------------------- 484 485 else { 486 BNC_CORE->sigintReceived = 0; 485 487 BNC_CORE->setMode(t_bncCore::batchPostProcessing); 486 488 BNC_CORE->startPPP();
Note:
See TracChangeset
for help on using the changeset viewer.