Changeset 9023 in ntrip


Ignore:
Timestamp:
Aug 21, 2020, 1:17:20 PM (4 years ago)
Author:
stuerze
Message:

minor changes to prevent a crash in case of missing sp3 comp logfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/orbComp/sp3Comp.cpp

    r8204 r9023  
    8484  }
    8585  if (!_log) {
    86     goto end;
     86    cerr << "ERROR: SP3Comp requires logfile specification" << endl;
     87    goto exit;
    8788  }
    8889
     
    123124 end:
    124125  _log->flush();
    125   if (BNC_CORE->mode() != t_bncCore::interactive) {
     126 exit:
     127  // do nothing if no logfile available
     128
     129  if (BNC_CORE->mode() != t_bncCore::interactive) {cout << "bin hier" << endl;
    126130    qApp->exit(0);
    127131    msleep(100); //sleep 0.1 sec
    128132  }
    129   else {
     133  else {cout << "bin hier" << endl;
    130134    emit finished();
    131135    deleteLater();
Note: See TracChangeset for help on using the changeset viewer.