Skip to content

Commit

Permalink
Added missing state calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner committed Jul 3, 2012
1 parent 57f0dcf commit db05779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cib/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,10 @@ bool Service::IsReachable(void) const
return false;
}

return true;
if (GetStateType() == StateTypeHard && GetState() != StateOK && GetState() != StateWarning)
return false;
else
return true;
}

void Service::SetNextCheck(time_t nextCheck)
Expand Down

0 comments on commit db05779

Please sign in to comment.