[Libreoffice-commits] online.git: wsd/DocumentBroker.cpp

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 29 07:51:45 UTC 2018


 wsd/DocumentBroker.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0e312f90169b35a0ad7db48252a9d6d8c526140a
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Thu Nov 29 08:51:26 2018 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Thu Nov 29 08:51:26 2018 +0100

    Fix gtk build: -Werror=unused-but-set-variable

diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 8235c073c..87eff69b6 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -250,11 +250,11 @@ void DocumentBroker::pollThread()
     uint64_t adminSent = 0;
     uint64_t adminRecv = 0;
     auto lastBWUpdateTime = std::chrono::steady_clock::now();
+    auto loadDeadline = std::chrono::steady_clock::now() + std::chrono::seconds(limit_load_secs);
 #endif
     auto last30SecCheckTime = std::chrono::steady_clock::now();
 
     int limit_load_secs = LOOLWSD::getConfigValue<int>("per_document.limit_load_secs", 100);
-    auto loadDeadline = std::chrono::steady_clock::now() + std::chrono::seconds(limit_load_secs);
 
     // Main polling loop goodness.
     while (!_stop && _poll->continuePolling() && !TerminationFlag)


More information about the Libreoffice-commits mailing list