Permalink
Browse files

Merge pull request #7 from monami-ya-mrb/pr-fix-connect-failed

Call Socket._connect() in Socket.connect() .
  • Loading branch information...
2 parents a90d8b8 + 11b4745 commit e345d4c68f8aa862ec9a07d50af3eb7edf4b8f54 @tsahara tsahara 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 e345d4c

Please sign in to comment.