diff options
| author | 2015-10-18 05:16:18 -0400 | |
|---|---|---|
| committer | 2015-10-18 05:17:31 -0400 | |
| commit | e227679b0af3687acf9292953edbb0ebeab19df9 (patch) | |
| tree | b498cd485b2cf65cd6e4288ba75beb3ba6e89e02 /src/modules/dcc/DccFileTransfer.cpp | |
| parent | Merge pull request #1674 from un1versal/The-Emperor's-New-Clothes (diff) | |
| download | KVIrc-e227679b0af3687acf9292953edbb0ebeab19df9.tar.gz KVIrc-e227679b0af3687acf9292953edbb0ebeab19df9.tar.bz2 KVIrc-e227679b0af3687acf9292953edbb0ebeab19df9.zip | |
Clean up trailing whitespaces and excess newlines
Oh how I can already hear the sound of angry villagers
with pitchforks running over to my desk
Diffstat (limited to 'src/modules/dcc/DccFileTransfer.cpp')
| -rw-r--r-- | src/modules/dcc/DccFileTransfer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/dcc/DccFileTransfer.cpp b/src/modules/dcc/DccFileTransfer.cpp index ddd54ae5d..1fef5f367 100644 --- a/src/modules/dcc/DccFileTransfer.cpp +++ b/src/modules/dcc/DccFileTransfer.cpp @@ -150,7 +150,7 @@ bool DccRecvThread::sendAck(int filePos,bool bTolerateErrors) { if(bTolerateErrors) return true; // ignore at all - + // Reported error. If it's EAGAIN or EINTR then no data has been sent. #ifdef COMPILE_SSL_SUPPORT if(m_pSSL) @@ -407,14 +407,14 @@ void DccRecvThread::run() } } else { // Must send the ack... the peer must close the connection - + // We tollerate ack errors if we're in the last 90% of the file. // It might be that we're slow with receiving data but the server // has already closed the connection (buggy server though). - + bool bTolerateErrors = (m_pOpt->uTotalFileSize > 0) && (((quint64)m_pFile->pos()) >= (m_pOpt->uTotalFileSize - (m_pOpt->uTotalFileSize / 10))); - + if(!sendAck(m_pFile->pos(),bTolerateErrors)) break; } |
