Apply ReloadTimeout for 2.11

This commit is contained in:
Michael Friedrich 2019-05-13 11:22:55 +02:00
parent b3b7abdfe8
commit af8624dcf1
1 changed files with 2 additions and 1 deletions

View File

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