Skip to content

Commit

Permalink
fixed small bug in Mojo::IOLoop::Stream that caused close events to f…
Browse files Browse the repository at this point in the history
…ail sometimes
  • Loading branch information
kraih committed Jan 27, 2012
1 parent 0b5cfc2 commit 1f36f5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Changes
@@ -1,9 +1,11 @@
This file documents the revision history for Perl extension Mojolicious.

2.47 2012-01-26 00:00:00
2.47 2012-01-27 00:00:00
- Added pdf MIME type. (bfaist)
- Improved documentation.
- Improved tests.
- Fixed small bug in Mojo::IOLoop::Stream that caused close events to
fail sometimes.

2.46 2012-01-25 00:00:00
- Added EXPERIMENTAL request_timeout attribute to Mojo::UserAgent.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Stream.pm
Expand Up @@ -39,7 +39,7 @@ sub handle { shift->{handle} }

sub is_readable {
my $self = shift;
return $self->iowatcher->is_readable($self->{handle});
return $self->{handle} && $self->iowatcher->is_readable($self->{handle});
}

sub is_writing {
Expand Down

0 comments on commit 1f36f5e

Please sign in to comment.