qhttpthreaddelegate: check that we have a reply set when reading.
Make sure that we always have a reply set when we try to read. Change-Id: Ib3ce9063bffc9810fc2a4fb52ee1a65b7f8cdfa0 Reviewed-by: Prasanth Ullattil <prasanth.ullattil@nokia.com>
This commit is contained in:
parent
7a67c822e3
commit
417fc1f759
@ -374,6 +374,9 @@ void QHttpThreadDelegate::readBufferFreed(qint64 size)
|
|||||||
|
|
||||||
void QHttpThreadDelegate::readyReadSlot()
|
void QHttpThreadDelegate::readyReadSlot()
|
||||||
{
|
{
|
||||||
|
if (!httpReply)
|
||||||
|
return;
|
||||||
|
|
||||||
// Don't do in zerocopy case
|
// Don't do in zerocopy case
|
||||||
if (!downloadBuffer.isNull())
|
if (!downloadBuffer.isNull())
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user