From 6b2cc1d28b67dd352c4be775ba214ca864cc5500 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 14 May 2016 12:58:21 +0200 Subject: cfgfiles: Reinitialize timers on net_ping_timeout change This ensures that changes will take effect without a restart. --- src/common/cfgfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index 910e0781..675a4140 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -532,7 +532,7 @@ const struct prefs vars[] = {"net_auto_reconnectonfail", P_OFFINT (hex_net_auto_reconnectonfail), TYPE_BOOL}, #endif {"net_bind_host", P_OFFSET (hex_net_bind_host), TYPE_STR}, - {"net_ping_timeout", P_OFFINT (hex_net_ping_timeout), TYPE_INT}, + {"net_ping_timeout", P_OFFINT (hex_net_ping_timeout), TYPE_INT, hexchat_reinit_timers}, {"net_proxy_auth", P_OFFINT (hex_net_proxy_auth), TYPE_BOOL}, {"net_proxy_host", P_OFFSET (hex_net_proxy_host), TYPE_STR}, {"net_proxy_pass", P_OFFSET (hex_net_proxy_pass), TYPE_STR}, -- cgit 1.4.1