CheckServerJob: Guard again null reply

Lucia had reported a crash in this function
This commit is contained in:
Markus Goetz 2014-10-29 09:37:52 +01:00
parent eeb54290b3
commit 7bad731ad2

View file

@ -382,8 +382,11 @@ void CheckServerJob::start()
void CheckServerJob::slotTimeout()
{
qDebug() << "TIMEOUT" << Q_FUNC_INFO;
if (reply()->isRunning())
if (reply() && reply()->isRunning()) {
emit timeout(reply()->url());
} else if (!reply()) {
qDebug() << Q_FUNC_INFO << "Timeout even there was no reply?";
}
deleteLater();
}