]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Lock.pm
lei: q: lock stdout on overview output
[public-inbox.git] / lib / PublicInbox / Lock.pm
index 2c5ebf270a3aed694a9f3c68156f1c431bd69b30..bb213de448c3f6c4ca08a0f8dd7ec34b40420590 100644 (file)
@@ -37,7 +37,7 @@ sub lock_release {
 # caller must use return value
 sub lock_for_scope {
        my ($self, @single_pid) = @_;
-       $self->lock_acquire;
+       lock_acquire($self) or return; # lock_path not set
        PublicInbox::OnDestroy->new(@single_pid, \&lock_release, $self);
 }