From: Eric Wong Date: Sun, 29 May 2016 04:09:14 +0000 (+0000) Subject: inbox: drop references ASAP for search and msgmap X-Git-Tag: v1.0.0~474 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6a36a397b2f888d1c5981143e0901b447e77280a;p=public-inbox.git inbox: drop references ASAP for search and msgmap We can't leave them lingering in the parent process at all due to the risk of corruption with multiple processes. --- diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index d050dc86..27218de7 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -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; }