From 0fc61581bf8e7ce431cf0010c7f9d1c113d738c5 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 9 Aug 2024 15:00:18 +0200 Subject: [PATCH] use very coarse timers for network timeout seems to work around some timers expiring too early Signed-off-by: Matthieu Gallien --- src/libsync/abstractnetworkjob.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsync/abstractnetworkjob.cpp b/src/libsync/abstractnetworkjob.cpp index 99ec1012dcb05..5e9df7067e4b5 100644 --- a/src/libsync/abstractnetworkjob.cpp +++ b/src/libsync/abstractnetworkjob.cpp @@ -57,6 +57,7 @@ AbstractNetworkJob::AbstractNetworkJob(const AccountPtr &account, const QString ASSERT(account != parent); _timer.setSingleShot(true); + _timer.setTimerType(Qt::VeryCoarseTimer); _timer.setInterval((httpTimeout ? httpTimeout : 300) * 1000); // default to 5 minutes. connect(&_timer, &QTimer::timeout, this, &AbstractNetworkJob::slotTimeout);