ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Handle.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Handle.pm (file contents):
Revision 1.180 by root, Thu Aug 20 22:58:35 2009 UTC vs.
Revision 1.181 by root, Tue Sep 1 10:40:05 2009 UTC

1190 my $type = shift; 1190 my $type = shift;
1191 1191
1192 $cb = ($RH{$type} or Carp::croak "unsupported type passed to AnyEvent::Handle::unshift_read") 1192 $cb = ($RH{$type} or Carp::croak "unsupported type passed to AnyEvent::Handle::unshift_read")
1193 ->($self, $cb, @_); 1193 ->($self, $cb, @_);
1194 } 1194 }
1195
1196 1195
1197 unshift @{ $self->{_queue} }, $cb; 1196 unshift @{ $self->{_queue} }, $cb;
1198 $self->_drain_rbuf; 1197 $self->_drain_rbuf;
1199} 1198}
1200 1199

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines