Skip to content

Commit

Permalink
the callback is actually required
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 12, 2016
1 parent 6b2b39e commit 27af4e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/UserAgent.pm
Expand Up @@ -63,8 +63,7 @@ sub start {
}

sub websocket {
my $self = shift;
my $cb = ref $_[-1] eq 'CODE' ? pop : undef;
my ($self, $cb) = (shift, pop);
$self->start($self->build_websocket_tx(@_), $cb);
}

Expand Down

0 comments on commit 27af4e7

Please sign in to comment.