Nonblocking triggers now do not return any responses.
This commit is contained in:
parent
e495249147
commit
5e92dc3009
1 changed files with 7 additions and 2 deletions
|
@ -190,8 +190,13 @@ namespace Triggers{
|
|||
if (isHandled){
|
||||
INFO_MSG("%s trigger handled by %s", type.c_str(), uri.c_str());
|
||||
if (dryRun){return true;}
|
||||
response = handleTrigger(type, uri, payload, sync); // do it.
|
||||
retVal &= Util::stringToBool(response);
|
||||
if (sync){
|
||||
response = handleTrigger(type, uri, payload, sync); // do it.
|
||||
retVal &= Util::stringToBool(response);
|
||||
}else{
|
||||
std::string unused_response = handleTrigger(type, uri, payload, sync); // do it.
|
||||
retVal &= Util::stringToBool(unused_response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue