mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-23 04:45:43 +03:00
use very coarse timers for network timeout
seems to work around some timers expiring too early Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
e5c6e792d7
commit
0fc61581bf
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue