From e227679b0af3687acf9292953edbb0ebeab19df9 Mon Sep 17 00:00:00 2001 From: Matt Ullman Date: Sun, 18 Oct 2015 05:16:18 -0400 Subject: 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 --- src/modules/dcc/DccFileTransfer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/dcc/DccFileTransfer.cpp') 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; } -- cgit v1.3.1-10-gc9f91