Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
updated Changes file
  • Loading branch information
kraih committed Nov 27, 2012
1 parent 426428e commit 7306d46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Changes
@@ -1,6 +1,10 @@

3.63 2012-11-27
- Added support for smooth restarting to Morbo.
- Added acceptor method to Mojo::IOLoop.
- Added stop method to Mojo::Server::Daemon.
- Improved documentation.
- Improved tests.

3.62 2012-11-26
- Improved compatibility with IO::Socket::SSL 1.79.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Server/Morbo.pm
Expand Up @@ -34,10 +34,10 @@ sub run {
unshift @{$self->watch}, $app;
$self->{modified} = 1;

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

# Manage
# Watch files and manage worker
$self->_manage while !$self->{finished} || $self->{running};
exit 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent.pm
Expand Up @@ -115,7 +115,7 @@ sub start {
warn "-- Switching to blocking mode\n" if DEBUG;
$self->_cleanup(1);
}
$self->_start($tx => sub { $tx = $_[1] });
$self->_start($tx => sub { $tx = pop });

# Start event loop
$self->ioloop->start;
Expand Down

0 comments on commit 7306d46

Please sign in to comment.