Skip to content

Commit

Permalink
silence first daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 27, 2012
1 parent 7306d46 commit 24dfa65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -73,9 +73,10 @@ sub start {
sub stop {
my $self = shift;

# Pause accepting connections
my $loop = $self->ioloop;
while (my $id = shift @{$self->{acceptors}}) {
$self->{servers}{$id} = my $server = $loop->acceptor($id);
my $server = $self->{servers}{$id} = $loop->acceptor($id);
$loop->remove($id);
$server->stop;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Morbo.pm
Expand Up @@ -35,7 +35,7 @@ sub run {
$self->{modified} = 1;

# Prepare and cache listen sockets for smooth restarting
my $daemon = Mojo::Server::Daemon->new->start->stop;
my $daemon = Mojo::Server::Daemon->new(silent => 1)->start->stop;

# Watch files and manage worker
$self->_manage while !$self->{finished} || $self->{running};
Expand Down

0 comments on commit 24dfa65

Please sign in to comment.