Permalink
Browse files

Paranoid: check to make sure a client is defined before putting it in…

… the list again.
  • Loading branch information...
Jonathan Steinert
Jonathan Steinert committed Feb 1, 2012
1 parent e51a6d3 commit dae00dcbf0155ede69229ca48b803a822c243735
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Gearman/Server/Client.pm
@@ -99,6 +99,7 @@ sub close {
my $new_sleepers_list;
for my $client (@{$sleepers_list->{$job}}) {
+ next unless $client;
push @{$new_sleepers_list}, $client unless $sleeping->{$client};
}
if ($new_sleepers_list) {

0 comments on commit dae00dc

Please sign in to comment.