only call Bugzilla::Bug->CLEANUP if Bugzilla::Bug is loaded.

parent d3a58e04
...@@ -686,7 +686,7 @@ sub _cleanup { ...@@ -686,7 +686,7 @@ sub _cleanup {
my $smtp = $cache->{smtp}; my $smtp = $cache->{smtp};
$smtp->disconnect if $smtp; $smtp->disconnect if $smtp;
clear_request_cache(); clear_request_cache();
Bugzilla::Bug->CLEANUP(); Bugzilla::Bug->CLEANUP() if $INC{"Bugzilla/Bug.pm"};
# These are both set by CGI.pm but need to be undone so that # These are both set by CGI.pm but need to be undone so that
# Apache can actually shut down its children if it needs to. # Apache can actually shut down its children if it needs to.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment