diff options
author | Eric Wong <e@yhbt.net> | 2020-01-10 08:49:32 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-11 21:16:31 +0000 |
commit | ab2b0607f05904866784684603c4a1f5c13c1e80 (patch) | |
tree | 6c6459f200c044a93410801536234e81b4c18a3f /lib/PublicInbox/WatchMaildir.pm | |
parent | 62f28026e624ed30d620063a0fa92cbedb7f6673 (diff) | |
download | public-inbox-ab2b0607f05904866784684603c4a1f5c13c1e80.tar.gz |
It's only used by us in public-inbox-watch, and maybe not for long. It's in most installations because Plack pulls it in though, but Plack is no longer required.
Diffstat (limited to 'lib/PublicInbox/WatchMaildir.pm')
-rw-r--r-- | lib/PublicInbox/WatchMaildir.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm index dfb987e8..cf1dfa76 100644 --- a/lib/PublicInbox/WatchMaildir.pm +++ b/lib/PublicInbox/WatchMaildir.pm @@ -202,7 +202,8 @@ sub watch { # lazy load here, we may support watching via IMAP IDLE # in the future... - require Filesys::Notify::Simple; + eval { require Filesys::Notify::Simple } or + die "Filesys::Notify::Simple is currently required for $0\n"; my $fsn = Filesys::Notify::Simple->new([@{$self->{mdir}}, $scandir]); $fsn->wait($cb) until $self->{quit}; } |