diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-10-27 15:39:19 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-11-25 16:51:05 +0300 |
commit | a9cf7edffcbc6ee2bf8062c27903d1ea83619b27 (patch) | |
tree | 2a90ed6c8d8d048a11115f84c1c3bf5b97e9d468 /src/libsync/networkjobs.cpp | |
parent | 6f1e135ee6921116d8b44ef38db2356ee9de34e0 (diff) |
Use std::chrono for timeouts
Diffstat (limited to 'src/libsync/networkjobs.cpp')
-rw-r--r-- | src/libsync/networkjobs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/networkjobs.cpp b/src/libsync/networkjobs.cpp index 45328e0d7..d4363fa4d 100644 --- a/src/libsync/networkjobs.cpp +++ b/src/libsync/networkjobs.cpp @@ -884,7 +884,7 @@ void fetchPrivateLinkUrl(AccountPtr account, const QString &remotePath, QObject // Retrieve the new link by PROPFIND PropfindJob *job = new PropfindJob(account, remotePath, target); job->setProperties({ QByteArrayLiteral("http://owncloud.org/ns:privatelink") }); - job->setTimeout(10 * 1000); + job->setTimeout(10s); QObject::connect(job, &PropfindJob::result, target, [=](const QMap<QString, QString> &result) { auto privateLinkUrl = result[QStringLiteral("privatelink")]; if (!privateLinkUrl.isEmpty()) { |