Start consuming right away, if there's data available from the start
Fixes sendfiletest
This commit is contained in:
parent
963a15bd08
commit
5a265a55de
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ void FileTransferJob::doStart()
|
|||
return;
|
||||
}
|
||||
|
||||
if (mOrigin->bytesAvailable())
|
||||
startTransfer();
|
||||
connect(mOrigin.data(), &QIODevice::readyRead, this, &FileTransferJob::startTransfer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue