about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-08-24 13:04:06 +0000
committerEric Wong <e@80x24.org>2021-08-24 20:11:38 +0000
commit9d6b13687e0e4403523bff301adb4aae027dfdb1 (patch)
tree2e8226a053c5a946dbc9550c267f1279966adf0c /lib
parent6b8a044462073a15f7746c597f4fd2d4bddf5e7a (diff)
downloadpublic-inbox-9d6b13687e0e4403523bff301adb4aae027dfdb1.tar.gz
I'm not sure if this class will actually be needed, but
we need to load it while we're using it.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LEI.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index 4d5c61fe..ea3ec0fe 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -1423,6 +1423,7 @@ sub refresh_watches {
                                 ++$renames;
                         }
                         next if $watches->{$f}; # may be set to pause
+                        require PublicInbox::LeiWatch;
                         $watches->{$f} = PublicInbox::LeiWatch->new($f);
                         $seen{$f} = undef;
                         add_maildir_watch($cd, $cfg_f);