Permalink
Browse files

Call Socket._connect() in Socket.connect() .

  • Loading branch information...
1 parent a90d8b8 commit 11b47459e76ffe6e6d4fe21db045b43d95704b56 @monaka monaka committed Mar 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 mrblib/socket.rb
View
@@ -399,7 +399,7 @@ def bind(sockaddr)
def connect(sockaddr)
sockaddr = sockaddr.to_sockaddr if sockaddr.is_a? Addrinfo
- Socket._bind(self.fileno, sockaddr)
+ Socket._connect(self.fileno, sockaddr)
0
end

0 comments on commit 11b4745

Please sign in to comment.