Skip to content
Browse files

[rt.cpan.org 76549] Fix a little typo in sidecar cleanup.

_poe_sidecar_closed() was destroying the wrong sidecar process.  Thank
you, Kozunov, for the code review and bug report.  Two little octets
can make a huge difference.
  • Loading branch information...
1 parent 401d307 commit accbcc5a17b77642325a00267e78d1506d936640 @rcaputo committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/POE/Component/Resolver.pm
View
2 lib/POE/Component/Resolver.pm
@@ -341,7 +341,7 @@ sub _poe_sidecar_closed {
my $i = @{$heap->{sidecar_ring}};
while ($i--) {
next unless $heap->{sidecar_ring}[$i]->ID() == $wheel_id;
- splice(@{$heap->{sidecar_ring}}, 1, 1);
+ splice(@{$heap->{sidecar_ring}}, $i, 1);
last;
}

0 comments on commit accbcc5

Please sign in to comment.
Something went wrong with that request. Please try again.