Update source/src/services.cpp
This commit is contained in:
@@ -143,7 +143,10 @@ namespace dropshell
|
|||||||
error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<<server_name << " - "<< service.template_name << std::endl;
|
error << "Variable TEMPLATE_HASH not found in the service " << filenames::template_info_env << " for "<<server_name << " - "<< service.template_name << std::endl;
|
||||||
else if (tinfo.is_set())
|
else if (tinfo.is_set())
|
||||||
{
|
{
|
||||||
uint64_t service_template_hash = std::stoull(it->second);
|
std::string template_hash_str = it->second;
|
||||||
|
uint64_t service_template_hash = 0;
|
||||||
|
if (!template_hash_str.empty())
|
||||||
|
service_template_hash = std::stoull(template_hash_str);
|
||||||
service.service_template_hash_match = (service_template_hash == tinfo.hash());
|
service.service_template_hash_match = (service_template_hash == tinfo.hash());
|
||||||
//debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
|
//debug << "Service template hash: " << service_template_hash << " == " << tinfo.hash() << std::endl;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user