summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r--lib/Smokeping.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 0324ae9..f870d05 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -4021,6 +4021,8 @@ sub reload_cfg ($) {
my $cfgfile = shift;
my ($oldcfg, $oldprobes) = ($cfg, $probes);
do_log("Reloading configuration.");
+ $cfg = undef;
+ $probes = undef;
eval { load_cfg($cfgfile) };
if ($@) {
do_log("Reloading configuration from $cfgfile failed: $@");