Skip to content

Commit

Permalink
Merge pull request #6987 from nextcloud/bugfix/fixCrazyNetworkTimeout
Browse files Browse the repository at this point in the history
use very coarse timers for network timeout
  • Loading branch information
mgallien authored Aug 12, 2024
2 parents e5c6e79 + 0fc6158 commit 38febcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsync/abstractnetworkjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 38febcc

Please sign in to comment.