Skip to content
Browse files

Undo usage of SSLSocket#io, doesn't work with current Ruby

  • Loading branch information...
1 parent 6f8b93a commit 1bb9ce00a8989a9369b3a815ef5f9f3ae25c68f3 @astro astro committed Aug 17, 2008
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/xmpp4r/connection.rb
View
12 lib/xmpp4r/connection.rb
@@ -155,14 +155,10 @@ def starttls
Jabber::debuglog("TLSv1: OpenSSL handshake in progress")
sslsocket.connect
- if sslsocket.respond_to? :io
- sslsocket = sslsocket.io
- else
- # Make REXML believe it's a real socket
- class << sslsocket
- def kind_of?(o)
- o == IO ? true : super
- end
+ # Make REXML believe it's a real socket
+ class << sslsocket
+ def kind_of?(o)
+ o == IO ? true : super
end
end

0 comments on commit 1bb9ce0

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