Devel: Don't change a manually-specified engine when using the -r switch
[catagits/Catalyst-Devel.git] / lib / Catalyst / Helper.pm
index 50c4e2e..7c444cb 100644 (file)
@@ -879,7 +879,7 @@ GetOptions(
 
 pod2usage(1) if $help;
 
-if ( $restart ) {
+if ( $restart && $ENV{CATALYST_ENGINE} eq 'HTTP' ) {
     $ENV{CATALYST_ENGINE} = 'HTTP::Restarter';
 }
 if ( $debug ) {