From 5a265a55de9a97e8ec7784922724df35ffcf0728 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 5 Jul 2016 12:56:27 +0200 Subject: [PATCH] Start consuming right away, if there's data available from the start Fixes sendfiletest --- core/filetransferjob.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 4f63f76bd..9ee8205a5 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -72,6 +72,8 @@ void FileTransferJob::doStart() return; } + if (mOrigin->bytesAvailable()) + startTransfer(); connect(mOrigin.data(), &QIODevice::readyRead, this, &FileTransferJob::startTransfer); }