* lib/net/imap.rb (disconnect): closes the socket of a Net::IMAP

object only when it is not closed.  [ruby-dev:41350]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shugo 2010-05-19 14:22:09 +00:00
Родитель 92b7ae2bcc
Коммит f1ff36a331
2 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Wed May 19 23:19:30 2010 Shugo Maeda <shugo@ruby-lang.org>
* lib/net/imap.rb (disconnect): closes the socket of a Net::IMAP
object only when it is not closed. [ruby-dev:41350]
Wed May 19 20:09:38 2010 Yusuke Endoh <mame@tsg.ne.jp>
* vm_eval.c (rb_f_caller): return [] instead of nil when the function

Просмотреть файл

@ -311,7 +311,11 @@ module Net
@receiver_thread.raise(e)
end
@receiver_thread.join
@sock.close
synchronize do
unless @sock.closed?
@sock.close
end
end
raise e if e
end