Changeset 4809 in ntrip


Ignore:
Timestamp:
Jan 1, 2013, 11:25:28 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r4808 r4809  
    3737  _iRow          = iRow;
    3838  _rate          = rate;
    39   if      (_rate < 5) {
    40     _rate = 5;
     39  if      (_rate < 0) {
     40    _rate = 0;
    4141  }
    4242  else if (_rate > 60) {
     
    8989        _outSocket->flush();
    9090        emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
    91         _outBuffer.clear();
     91        if (_rate == 0) {
     92          _outBuffer.clear();
     93        }
    9294      }
    9395    }
    94     sleep(_rate);
     96    if (_rate == 0) {
     97      sleep(1);
     98    }
     99    else {
     100      sleep(_rate);
     101    }
    95102  }
    96103}
Note: See TracChangeset for help on using the changeset viewer.