Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clean up the event loop consistently (closes #1102)
  • Loading branch information
kraih committed Jun 12, 2017
1 parent 0a8bb00 commit e5e666f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/TLS.pm
Expand Up @@ -82,7 +82,7 @@ sub _expand {
sub _tls {
my ($self, $handle, $server) = @_;

return $self->emit(upgrade => delete $self->{handle})
return $self->_cleanup->emit(upgrade => delete $self->{handle})
if $server ? $handle->accept_SSL : $handle->connect_SSL;

# Switch between reading and writing
Expand Down

0 comments on commit e5e666f

Please sign in to comment.