Skip to content

Commit

Permalink
daemon: ensure interval update is taken into account fast
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Mar 1, 2018
1 parent 12e08b9 commit d43d79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daemon/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ client_handle_set_configuration(struct lldpd *cfg, enum hmsg_type *type,
if (CHANGED(c_tx_interval) && config->c_tx_interval != 0) {
if (config->c_tx_interval < 0) {
log_debug("rpc", "client asked for immediate retransmission");
levent_send_now(cfg);
} else {
log_debug("rpc", "client change transmit interval to %d",
config->c_tx_interval);
cfg->g_config.c_tx_interval = config->c_tx_interval;
cfg->g_config.c_ttl = cfg->g_config.c_tx_interval *
cfg->g_config.c_tx_hold;
}
levent_send_now(cfg);
}
if (CHANGED(c_tx_hold) && config->c_tx_hold > 0) {
log_debug("rpc", "client change transmit hold to %d",
Expand Down

0 comments on commit d43d79d

Please sign in to comment.