mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-17 21:10:17 +02:00
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)
|
||||
{
|
||||
/* 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 */
|
||||
callback();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user