Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
be sure to use the $server class
  • Loading branch information
jberger committed Nov 29, 2015
1 parent 4f8ff71 commit 04cd573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Transaction.pm
Expand Up @@ -63,8 +63,8 @@ sub remote_address {
sub resume { shift->_state(qw(write resume)) }
sub server_close { shift->_state(qw(finished finish)) }

sub server_read { shift->_channel->read(@_) }
sub server_write { shift->_channel->write(@_) }
sub server_read { shift->_channel(1)->read(@_) }
sub server_write { shift->_channel(1)->write(@_) }

sub success { $_[0]->error ? undef : $_[0]->res }

Expand Down

0 comments on commit 04cd573

Please sign in to comment.