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

Legend:

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

    r3273 r4808  
    8585    if (_outSocket && _outSocket->state() == QAbstractSocket::ConnectedState) {
    8686      QMutexLocker locker(&_mutex);
    87       _outSocket->write(_outBuffer);
    88       _outSocket->flush();
    89       emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
     87      if (_outBuffer.size() > 0) {
     88        _outSocket->write(_outBuffer);
     89        _outSocket->flush();
     90        emit newBytes(_mountpoint.toAscii(), _outBuffer.size());
     91        _outBuffer.clear();
     92      }
    9093    }
    9194    sleep(_rate);
Note: See TracChangeset for help on using the changeset viewer.