mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
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:
parent
963b9d47ee
commit
5e3859f218
1 changed files with 2 additions and 1 deletions
|
@ -1498,7 +1498,8 @@ conf_verify_poll_interval(keychain_t *chain, const struct yml_node *node)
|
||||||
if (!conf_verify_unsigned(chain, node))
|
if (!conf_verify_unsigned(chain, node))
|
||||||
return false;
|
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",
|
LOG_ERR("%s: interval value cannot be less than %ldms",
|
||||||
conf_err_prefix(chain, node), min_poll_interval);
|
conf_err_prefix(chain, node), min_poll_interval);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue