Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed location of the connection obj

  • Loading branch information...
commit e232d17a114e5dc81c81b3907fa10795d3939504 1 parent 70eff50
@xantus authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 script/websocket-irc-example-1
View
4 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;
});
Please sign in to comment.
Something went wrong with that request. Please try again.