]> Sergey Matveev's repositories - public-inbox.git/blobdiff - script/public-inbox-httpd
httpd: remove reference to callback during close
[public-inbox.git] / script / public-inbox-httpd
index e7ed3c9df4fa1e122dd1714cea5678e9d2e56ab6..3ca974c9a780e1b101661691930a407a4d2345ef 100755 (executable)
@@ -82,6 +82,12 @@ sub event_hup { $_[0]->{cb}->() }
 sub event_err { $_[0]->{cb}->() }
 sub sysread { shift->{sock}->sysread(@_) }
 
+sub close {
+       my $self = shift;
+       $self->{cb} = undef;
+       $self->SUPER::close(@_);
+}
+
 1;
 
 package PublicInbox::HTTPD;