* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
environments without OpenSSL. fixed [ruby-dev:35755]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a7def6ea9
commit
49f7b3e8d1
@ -1,3 +1,8 @@
|
|||||||
|
Tue Aug 5 16:13:05 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
|
||||||
|
environments without OpenSSL. fixed [ruby-dev:35755].
|
||||||
|
|
||||||
Tue Aug 5 14:19:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Aug 5 14:19:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* file.c (rb_stat_mode): generalized st_mode mask.
|
* file.c (rb_stat_mode): generalized st_mode mask.
|
||||||
|
@ -287,9 +287,11 @@ module Net
|
|||||||
|
|
||||||
# Disconnects from the server.
|
# Disconnects from the server.
|
||||||
def disconnect
|
def disconnect
|
||||||
if SSL::SSLSocket === @sock
|
begin
|
||||||
|
# try to call SSL::SSLSocket#io.
|
||||||
@sock.io.shutdown
|
@sock.io.shutdown
|
||||||
else
|
rescue NoMethodError
|
||||||
|
# @sock is not an SSL::SSLSocket.
|
||||||
@sock.shutdown
|
@sock.shutdown
|
||||||
end
|
end
|
||||||
@receiver_thread.join
|
@receiver_thread.join
|
||||||
|
Loading…
x
Reference in New Issue
Block a user