Permalink
Browse files

fixed timer bug

  • Loading branch information...
1 parent a0b76da commit 0af7aa1d3224c125bed7a081777ac3abb8cbe6fa @xantus committed Jan 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/websocket-example-1
@@ -42,7 +42,7 @@ Mojo::Server::Daemon->new->ioloop->listen(
my ( $self, $id ) = @_;
warn "843 connect: $id\n";
- $self->timer( $id => ( after => 5, sub {
+ $self->timer( $id => ( after => 5, cb => sub {
$self->drop( $id );
} ));

0 comments on commit 0af7aa1

Please sign in to comment.