Connectivity: Reduce ETag job timeout to 60 sec #4275
authorMarkus Goetz <markus@woboq.com>
Tue, 31 May 2016 07:35:04 +0000 (09:35 +0200)
committerMarkus Goetz <markus@woboq.com>
Tue, 31 May 2016 07:35:47 +0000 (09:35 +0200)
Before it used the default job timeout

src/gui/folder.cpp

index 5b8c01957d1b3f7dcd25c111be4d1e87fadb91eb..3b36ca48be5ba35fa8327679589405deadbef07b 100644 (file)
@@ -320,6 +320,7 @@ void Folder::slotRunEtagJob()
         // sync if it's different.
 
         _requestEtagJob = new RequestEtagJob(account, remotePath(), this);
+        _requestEtagJob->setTimeout(60*1000);
         // check if the etag is different
         QObject::connect(_requestEtagJob, SIGNAL(etagRetreived(QString)), this, SLOT(etagRetreived(QString)));
         FolderMan::instance()->slotScheduleETagJob(alias(), _requestEtagJob);