mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 13:25:52 +03:00
CheckServerJob: Guard again null reply
Lucia had reported a crash in this function
This commit is contained in:
parent
eeb54290b3
commit
7bad731ad2
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue