]> Sergey Matveev's repositories - public-inbox.git/commitdiff
inbox: drop references ASAP for search and msgmap
authorEric Wong <e@80x24.org>
Sun, 29 May 2016 04:09:14 +0000 (04:09 +0000)
committerEric Wong <e@80x24.org>
Sun, 29 May 2016 04:09:14 +0000 (04:09 +0000)
We can't leave them lingering in the parent process at
all due to the risk of corruption with multiple processes.

lib/PublicInbox/Inbox.pm

index d050dc86b0ad677c289e8b171bd2bcf191aa3878..27218de74c22a9082dba5d10942186fe29947752 100644 (file)
@@ -86,7 +86,7 @@ sub base_url {
 sub nntp_usable {
        my ($self) = @_;
        my $ret = $self->mm && $self->search;
-       weaken_all();
+       $self->{mm} = $self->{search} = undef;
        $ret;
 }