Commit 328ce334 authored by Beat Küng's avatar Beat Küng Committed by Lorenz Meier

FileManager: fix upload complete

Previously, a completed file upload lead to this assert:
    Q_ASSERT(!_ackTimer.isActive());
because _closeUploadSeesion() was called twice, thus activating the timer
twice.
parent c3496b9c
......@@ -239,6 +239,7 @@ void FileManager::_writeAckResponse(Request* writeAck)
{
if(_writeOffset + _writeSize >= _writeFileSize){
_closeUploadSession(true /* success */);
return;
}
if (writeAck->hdr.session != _activeSession) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment