Apply ReloadTimeout for 2.11

This commit is contained in:
Michael Friedrich 2019-05-13 11:22:55 +02:00
parent b3b7abdfe8
commit af8624dcf1

View File

@ -8,6 +8,7 @@
#include "base/configtype.hpp" #include "base/configtype.hpp"
#include "base/logger.hpp" #include "base/logger.hpp"
#include "base/convert.hpp" #include "base/convert.hpp"
#include "base/application.hpp"
#include "base/exception.hpp" #include "base/exception.hpp"
#include "base/utility.hpp" #include "base/utility.hpp"
#include <fstream> #include <fstream>
@ -564,7 +565,7 @@ void ApiListener::AsyncTryActivateZonesStage(const std::vector<String>& relative
args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir()); args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir());
Process::Ptr process = new Process(Process::PrepareCommand(args)); Process::Ptr process = new Process(Process::PrepareCommand(args));
process->SetTimeout(300); process->SetTimeout(Application::GetReloadTimeout());
process->Run(std::bind(&TryActivateZonesStageCallback, _1, relativePaths)); process->Run(std::bind(&TryActivateZonesStageCallback, _1, relativePaths));
} }