mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Attempt to fix a crash
The reply might be null at the point we are timing out. Issue #2246
This commit is contained in:
parent
70912c44de
commit
a3d70b3cf6
@ -203,11 +203,14 @@ void AbstractNetworkJob::start()
|
||||
|
||||
void AbstractNetworkJob::slotTimeout()
|
||||
{
|
||||
qDebug() << this << "Timeout" ;
|
||||
reply()->abort();
|
||||
qDebug() << this << "Timeout";
|
||||
if (reply()) {
|
||||
reply()->abort();
|
||||
} else {
|
||||
qDebug() << "reply was NULL";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*********************************************************************************************/
|
||||
|
||||
RequestEtagJob::RequestEtagJob(Account *account, const QString &path, QObject *parent)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user