Permalink
Browse files

fixed location of the connection obj

  • Loading branch information...
1 parent 70eff50 commit e232d17a114e5dc81c81b3907fa10795d3939504 @xantus committed Mar 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/websocket-irc-example-1
@@ -81,14 +81,14 @@ websocket '/' => sub {
$loop->error_cb($server => sub {
app->log->debug( "Disconnected from $irc_server (connection error)" );
- $loop->drop( $client->connection );
+ $loop->drop( $client->tx->connection );
delete $c->{$client};
return;
});
$loop->hup_cb($server => sub {
app->log->debug( "Disconnected from $irc_server (hangup)" );
- $loop->drop( $client->connection );
+ $loop->drop( $client->tx->connection );
delete $c->{$client};
return;
});

0 comments on commit e232d17

Please sign in to comment.