Skip to content

Commit

Permalink
fixed another small Mojo::IOLoop::Server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 8, 2011
1 parent 912a129 commit 85de670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -189,7 +189,7 @@ sub _accept {
return $self->emit(accept => $handle) unless my $tls = $self->{tls};
weaken $self;
$tls->{SSL_error_trap} = sub {
my $handle = delete $self->{handles}->{shift()};
return unless my $handle = delete $self->{handles}->{shift()};
$self->iowatcher->remove($handle);
close $handle;
};
Expand Down

0 comments on commit 85de670

Please sign in to comment.