Start consuming right away, if there's data available from the start

Fixes sendfiletest
This commit is contained in:
Aleix Pol 2016-07-05 12:56:27 +02:00
parent 963a15bd08
commit 5a265a55de

View file

@ -72,6 +72,8 @@ void FileTransferJob::doStart()
return;
}
if (mOrigin->bytesAvailable())
startTransfer();
connect(mOrigin.data(), &QIODevice::readyRead, this, &FileTransferJob::startTransfer);
}