mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
92b7ae2bcc
commit
f1ff36a331
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue