Skip to content

Commit

Permalink
get rid of a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 11, 2014
1 parent 9c43af5 commit bcd0744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.40 2014-09-11
5.40 2014-09-12
- Added reply->exception and reply->not_found helpers to
Mojolicious::Plugin::DefaultHelpers.
- Deprecated Mojo::EventEmitter::emit_safe.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Server/Daemon.pm
Expand Up @@ -160,7 +160,7 @@ sub _listen {
warn "-- Accept (@{[$stream->handle->peerhost]})\n" if DEBUG;
$stream->timeout($self->inactivity_timeout);

$stream->on(close => sub { $self->_close($id) });
$stream->on(close => sub { $self && $self->_close($id) });
$stream->on(error =>
sub { $self && $self->app->log->error(pop) && $self->_close($id) });
$stream->on(read => sub { $self->_read($id => pop) });
Expand Down

0 comments on commit bcd0744

Please sign in to comment.