Set a 30 second timeout for gpodder requests.
This commit is contained in:
parent
77d5d8bdea
commit
5e7e57df73
|
@ -38,11 +38,12 @@ const char* GPodderSync::kSettingsGroup = "Podcasts";
|
|||
const int GPodderSync::kFlushUpdateQueueDelay = 30 * kMsecPerSec; // 30 seconds
|
||||
const int GPodderSync::kGetUpdatesInterval =
|
||||
30 * 60 * kMsecPerSec; // 30 minutes
|
||||
const int GPodderSync::kRequestTimeout = 30 * kMsecPerSec; // 30 seconds
|
||||
|
||||
GPodderSync::GPodderSync(Application* app, QObject* parent)
|
||||
: QObject(parent),
|
||||
app_(app),
|
||||
network_(new NetworkAccessManager(this)),
|
||||
network_(new NetworkAccessManager(kRequestTimeout, this)),
|
||||
backend_(app_->podcast_backend()),
|
||||
loader_(new PodcastUrlLoader(this)),
|
||||
get_updates_timer_(new QTimer(this)),
|
||||
|
|
|
@ -51,6 +51,7 @@ class GPodderSync : public QObject {
|
|||
static const char* kSettingsGroup;
|
||||
static const int kFlushUpdateQueueDelay;
|
||||
static const int kGetUpdatesInterval;
|
||||
static const int kRequestTimeout;
|
||||
|
||||
static QString DefaultDeviceName();
|
||||
static QString DeviceId();
|
||||
|
|
Loading…
Reference in New Issue