Skip to content

Commit

Permalink
get rid of a few more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 17, 2015
1 parent 93e6c27 commit 7dfd839
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -3,11 +3,12 @@ use Mojo::Base 'Mojo::EventEmitter';

use Errno qw(EAGAIN ECONNRESET EINTR EWOULDBLOCK);
use Mojo::IOLoop;
use Mojo::Util;
use Scalar::Util 'weaken';

has reactor => sub { Mojo::IOLoop->singleton->reactor };

sub DESTROY { shift->close }
sub DESTROY { Mojo::Util::_global_destruction() or shift->close }

sub close {
my $self = shift;
Expand Down

0 comments on commit 7dfd839

Please sign in to comment.