Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo in instance variable name

  • Loading branch information...
commit dcb54d6013c816e2e2f490727520861eae09a708 1 parent cf2a2d2
@meh meh authored
Showing with 5 additions and 6 deletions.
  1. +1 −1  lib/em-socksify/socks5.rb
  2. +4 −5 lib/em-socksify/socksify.rb
View
2  lib/em-socksify/socks5.rb
@@ -101,7 +101,7 @@ def socks_parse_response
socks_unhook(ip)
end
rescue Exception => e
- @socks_deferable.fail(e)
+ @socks_deferrable.fail(e)
end
def socks_methods
View
9 lib/em-socksify/socksify.rb
@@ -12,10 +12,9 @@ def socksify(host, port, username = nil, password = nil, version = 5, &blk)
socks_hook
socks_send_handshake
- @socks_deferable = DefaultDeferrable.new
- @socks_deferable.callback(&blk) if blk
- @socks_deferable.errback { |e| raise e }
- @socks_deferable
+ @socks_deferrable = DefaultDeferrable.new
+ @socks_deferrable.callback(&blk) if blk
+ @socks_deferrable
end
def socks_hook
@@ -35,7 +34,7 @@ class << self
remove_method :receive_data
end
- @socks_deferable.succeed(ip)
+ @socks_deferrable.succeed(ip)
end
def socks_receive_data(data)

0 comments on commit dcb54d6

Please sign in to comment.
Something went wrong with that request. Please try again.