Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
revert on unintentional change
  • Loading branch information
jberger committed Dec 14, 2015
1 parent 5a5167c commit e25e02c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -72,8 +72,7 @@ sub websocket {
sub _cleanup {
my $self = shift;
delete $self->{pid};
my $connections = $self->{connections} || {};
$self->_finish($_, 1) for keys %$connections;
$self->_finish($_, 1) for keys %{$self->{connections} || {}};
return $self;
}

Expand Down

0 comments on commit e25e02c

Please sign in to comment.