Skip to content

Commit

Permalink
no need to close the handle
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2015
1 parent cdadac9 commit 12a8239
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -11,11 +11,9 @@ sub DESTROY { shift->close }

sub close {
my $self = shift;

return unless my $reactor = $self->reactor;
return unless my $handle = delete $self->timeout(0)->{handle};
$reactor->remove($handle);
close $handle;
$self->emit('close');
}

Expand Down

0 comments on commit 12a8239

Please sign in to comment.