Changeset 8579 in ntrip for branches/BNC_2.12


Ignore:
Timestamp:
Jan 10, 2019, 11:00:03 AM (6 years ago)
Author:
stuerze
Message:

a looong searched bug is hopefully found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp

    r8570 r8579  
    223223    return;
    224224  }
    225   int iEpoBegEarlier = _rtnetStreamBuffer.indexOf('*');
    226   if (iEpoBegEarlier != -1 && iEpoBegEarlier < iEpoBeg) { // are there two epoch lines in buffer?
     225  int iEpoBegEarlier = _rtnetStreamBuffer.indexOf('*'); // begin of first epoch
     226  if (iEpoBegEarlier != -1 && iEpoBegEarlier < iEpoBeg) { // are there more epoch lines in buffer?
    227227    _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoBegEarlier);
    228228  }
     
    231231  }
    232232
    233   int iEpoEnd = _rtnetStreamBuffer.lastIndexOf("EOE"); // end   of last epoch
     233  int iEpoEnd = _rtnetStreamBuffer.indexOf("EOE"); // end of first epoch
    234234  if (iEpoEnd == -1) {
    235235    return;
    236236  }
    237237  else {
    238     lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n',
    239         QString::SkipEmptyParts);
     238    lines = _rtnetStreamBuffer.left(iEpoEnd).split('\n', QString::SkipEmptyParts);
    240239    _rtnetStreamBuffer = _rtnetStreamBuffer.mid(iEpoEnd + 3);
    241240  }
Note: See TracChangeset for help on using the changeset viewer.