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.186 by root, Mon Sep 7 19:54:57 2009 UTC vs.
Revision 1.187 by root, Tue Sep 8 00:01:12 2009 UTC

567 $message ||= "$!"; 567 $message ||= "$!";
568 568
569 if ($self->{on_error}) { 569 if ($self->{on_error}) {
570 $self->{on_error}($self, $fatal, $message); 570 $self->{on_error}($self, $fatal, $message);
571 $self->destroy if $fatal; 571 $self->destroy if $fatal;
572 } elsif ($self->{fh}) { 572 } elsif ($self->{fh} || $self->{connect}) {
573 $self->destroy; 573 $self->destroy;
574 Carp::croak "AnyEvent::Handle uncaught error: $message"; 574 Carp::croak "AnyEvent::Handle uncaught error: $message";
575 } 575 }
576} 576}
577 577

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines