Skip to content

Commit

Permalink
Merge pull request #452 from kablamo/minor-fixes-loader-restarter
Browse files Browse the repository at this point in the history
Very minor change - Removed unused variable $builder from Loader::Restarter->run().
  • Loading branch information
miyagawa committed Oct 4, 2014
2 parents bfc584b + 11b2feb commit 6de3ff2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Plack/Loader/Restarter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ sub valid_file {
}

sub run {
my($self, $server, $builder) = @_;
my($self, $server) = @_;

$self->_fork_and_start($server, $builder);
$self->_fork_and_start($server);
return unless $self->{pid};

require Filesys::Notify::Simple;
Expand Down Expand Up @@ -86,7 +86,7 @@ sub run {

$self->_kill_child;
warn "Successfully killed! Restarting the new server process.\n";
$self->_fork_and_start($server, $builder);
$self->_fork_and_start($server);
return unless $self->{pid};
}
}
Expand Down

0 comments on commit 6de3ff2

Please sign in to comment.