PropagatorDownload: fix possible crash

Backtrace seen from the crash reporter where reply() is null.
This commit is contained in:
Olivier Goffart 2016-02-24 19:52:14 +01:00
parent b685f6b6b6
commit 60c101d90b

View file

@ -286,7 +286,9 @@ void GETFileJob::slotReadyRead()
void GETFileJob::slotTimeout()
{
qDebug() << "Timeout" << reply()->request().url();
qDebug() << "Timeout" << (reply() ? reply()->request().url() : path());
if (!reply())
return;
_errorString = tr("Connection Timeout");
_errorStatus = SyncFileItem::FatalError;
reply()->abort();