Changeset 9300 in ntrip


Ignore:
Timestamp:
Dec 4, 2020, 2:01:22 PM (3 months ago)
Author:
stuerze
Message:

small bug fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncephuser.cpp

    r9298 r9300  
    173173        newEph->isNewerThan(qq.back())){
    174174      qq.push_back(newEph);
     175      if (qq.size() > _maxQueueSize) {
     176        delete qq.front();
     177        qq.pop_front();
     178      }
     179      ephBufferChanged();
     180      return success;
    175181    }
    176182    else {
    177183      delete newEph;
    178     }
    179     if (qq.size() > _maxQueueSize) {
    180       delete qq.front();
    181       qq.pop_front();
    182     }
    183     ephBufferChanged();
    184     return success;
     184      return failure;
     185    }
     186
    185187  }
    186188  else {
Note: See TracChangeset for help on using the changeset viewer.