Permalink
Browse files

change proxied_bytes to get_proxied_bytes

  • Loading branch information...
1 parent df92251 commit 1f7bde88a5e2de3158e70e97ed4583ae7a9b272b @tmm1 tmm1 committed Mar 5, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/em/connection.rb
  2. +1 −1 tests/test_proxy_connection.rb
@@ -240,8 +240,8 @@ def stop_proxying
# The number of bytes proxied to another connection. Reset to zero when
# EventMachine::Connection#proxy_incoming_to is called, and incremented whenever data is proxied.
- def proxied_bytes
- EventMachine::get_proxied_bytes(self.signature)
+ def get_proxied_bytes
+ EventMachine::get_proxied_bytes(@signature)
end
# EventMachine::Connection#close_connection is called only by user code, and never
@@ -24,7 +24,7 @@ def proxy_target_unbound
end
def unbind
- $proxied_bytes = proxied_bytes
+ $proxied_bytes = self.get_proxied_bytes
@client.close_connection_after_writing
end
end

0 comments on commit 1f7bde8

Please sign in to comment.