X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine%2FHTTP%2FRestarter.pm;h=dd25edfdbe74404696be970ce36459f0fabf4f52;hb=536bee890cf24e0e4bcda7562e7b70cc03ca0620;hp=89274533fe9d500d171469a01457f05c66b0c6ae;hpb=4d0270d3dd2ae7070434ecea308a99e4f6144b26;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine/HTTP/Restarter.pm b/lib/Catalyst/Engine/HTTP/Restarter.pm index 8927453..dd25edf 100644 --- a/lib/Catalyst/Engine/HTTP/Restarter.pm +++ b/lib/Catalyst/Engine/HTTP/Restarter.pm @@ -83,9 +83,13 @@ around run => sub { sub _make_components_mutable { my ($self, $class) = @_; - my @metas = map { find_meta($_) } ($class, map { blessed($_) } values %{ $class->components }); + my @metas = grep { defined($_) } + map { find_meta($_) } + ($class, map { blessed($_) } + values %{ $class->components }); foreach my $meta (@metas) { + # Paranoia unneeded, all component metaclasses should have immutable $meta->make_mutable if $meta->is_immutable; } } @@ -125,7 +129,7 @@ Many parts are ripped out of C by Jesse Vincent. =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify it under +This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. =cut