The logical operations were inverted so enable/disable operations did
the opposite.
The bug is present since 1.7 so the fix should be backported there.
sv = hlua_check_server(L, 1);
if (sv->check.state & CHK_ST_CONFIGURED) {
- sv->check.state &= ~CHK_ST_ENABLED;
+ sv->check.state |= CHK_ST_ENABLED;
}
return 0;
}
sv = hlua_check_server(L, 1);
if (sv->check.state & CHK_ST_CONFIGURED) {
- sv->check.state |= CHK_ST_ENABLED;
+ sv->check.state &= ~CHK_ST_ENABLED;
}
return 0;
}