mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
environments without OpenSSL. backported from trunk. fixed [ruby-dev:35755]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
88c24c4659
commit
a5a4354976
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Aug 5 16:33:20 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
|
||||
environments without OpenSSL. backported from trunk.
|
||||
fixed [ruby-dev:35755].
|
||||
|
||||
Tue Aug 5 14:19:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_stat_mode): generalized st_mode mask.
|
||||
|
|
|
@ -284,9 +284,11 @@ module Net
|
|||
|
||||
# Disconnects from the server.
|
||||
def disconnect
|
||||
if SSL::SSLSocket === @sock
|
||||
begin
|
||||
# try to call SSL::SSLSocket#io.
|
||||
@sock.io.shutdown
|
||||
else
|
||||
rescue NoMethodError
|
||||
# @sock is not an SSL::SSLSocket.
|
||||
@sock.shutdown
|
||||
end
|
||||
@receiver_thread.join
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue