module/network: allow poll-interval == 0

Apparently the possibility to disable it was missed when the interval
was migrated to use milliseconds.
This commit is contained in:
tiosgz 2023-04-08 20:06:07 +00:00
parent 963b9d47ee
commit 5e3859f218

View file

@ -1498,7 +1498,8 @@ conf_verify_poll_interval(keychain_t *chain, const struct yml_node *node)
if (!conf_verify_unsigned(chain, node))
return false;
if (yml_value_as_int(node) < min_poll_interval) {
int interval = yml_value_as_int(node);
if (interval > 0 && interval < min_poll_interval) {
LOG_ERR("%s: interval value cannot be less than %ldms",
conf_err_prefix(chain, node), min_poll_interval);
return false;