diff options
-rw-r--r-- | lib/PublicInbox/LEI.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index a526a91f..e7f37efa 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -850,9 +850,7 @@ sub _lei_cfg ($;$) { } if (scalar(keys %PATH2CFG) > 5) { # FIXME: use inotify/EVFILT_VNODE to detect unlinked configs - for my $k (keys %PATH2CFG) { - delete($PATH2CFG{$k}) unless -f $k - } + delete(@PATH2CFG{grep(!-f, keys %PATH2CFG)}); } $self->{cfg} = $PATH2CFG{$f} = $cfg; refresh_watches($self); |