mirror of https://github.com/Icinga/icinga2.git
Fixed invalid cast in Service::BeginExecuteCheck().
This commit is contained in:
parent
8c2ab8f552
commit
20eaa441df
|
@ -484,7 +484,7 @@ void Service::OnAttributeChanged(const String& name, const Value& oldValue)
|
||||||
void Service::BeginExecuteCheck(const function<void (void)>& callback)
|
void Service::BeginExecuteCheck(const function<void (void)>& callback)
|
||||||
{
|
{
|
||||||
/* don't run another check if there is one pending */
|
/* don't run another check if there is one pending */
|
||||||
if (Get("current_task")) {
|
if (!Get("current_task").IsEmpty()) {
|
||||||
/* we need to call the callback anyway */
|
/* we need to call the callback anyway */
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue