Skip to content

Commit

Permalink
WebSockets always get closed
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 11, 2014
1 parent 3805fc1 commit 0f054c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -248,10 +248,7 @@ sub _finish {
$old->client_close($close);

# Finish WebSocket
if ($old->is_websocket) {
delete $self->{connections}{$id};
return $self->_remove($id, $close);
}
return $self->_remove($id, 1) if $old->is_websocket;

if (my $jar = $self->cookie_jar) { $jar->extract($old) }

Expand Down

0 comments on commit 0f054c7

Please sign in to comment.