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

Comparing AnyEvent/lib/AnyEvent/Socket.pm (file contents):
Revision 1.91 by root, Thu Jul 16 04:20:24 2009 UTC vs.
Revision 1.92 by root, Thu Jul 16 20:55:38 2009 UTC

766 766
767 $state{next} = sub { 767 $state{next} = sub {
768 return unless exists $state{fh}; 768 return unless exists $state{fh};
769 769
770 my $target = shift @target 770 my $target = shift @target
771 or do {
772 %state = ();
773 return $connect->(); 771 or return (%state = (), $connect->());
774 };
775 772
776 my ($domain, $type, $proto, $sockaddr) = @$target; 773 my ($domain, $type, $proto, $sockaddr) = @$target;
777 774
778 # socket creation 775 # socket creation
779 socket $state{fh}, $domain, $type, $proto 776 socket $state{fh}, $domain, $type, $proto

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines