Skip to content

Commit

Permalink
fix cleanup bugs in Mojo::IOLoop::Stream (closes #1050)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 9, 2017
1 parent ad9e47f commit 9d9ed3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

7.25 2017-02-09
- Fixed cleanup bugs in Mojo::IOLoop::Stream.

7.24 2017-02-05
- Added open method to Mojo::File.
Expand Down
2 changes: 2 additions & 0 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -8,6 +8,8 @@ use Scalar::Util 'weaken';

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

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

sub close {
my $self = shift;
return unless my $reactor = $self->reactor;
Expand Down

0 comments on commit 9d9ed3b

Please sign in to comment.