Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Goetz <markus@woboq.com>2014-10-29 11:37:52 +0300
committerMarkus Goetz <markus@woboq.com>2014-10-29 11:38:20 +0300
commit7bad731ad2c0dca86576fe6f178f462dbef49a5b (patch)
tree8bd347716b2705edb35594c8e81c55c8188187a6 /src/mirall
parenteeb54290b32dc3bf2ad387e76b3ca07772951dc0 (diff)
CheckServerJob: Guard again null reply
Lucia had reported a crash in this function
Diffstat (limited to 'src/mirall')
-rw-r--r--src/mirall/networkjobs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mirall/networkjobs.cpp b/src/mirall/networkjobs.cpp
index 443ef6a94..d9c61ee9e 100644
--- a/src/mirall/networkjobs.cpp
+++ b/src/mirall/networkjobs.cpp
@@ -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();
}