diff options
Diffstat (limited to '')
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/feed2imap/rubyimap.rb | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Feed2Imap 0.7 (XX/02/2006) +============================ +* Fixes the IMAPS disconnection problem (patch provided by Gael Utard + <gael.utard@laposte.net>) + Feed2Imap 0.6 (11/01/2006) ============================ * Moved the RSS/Atom parser to a separate library (ruby-feedparser). diff --git a/lib/feed2imap/rubyimap.rb b/lib/feed2imap/rubyimap.rb index e564b8d..4e43f60 100644 --- a/lib/feed2imap/rubyimap.rb +++ b/lib/feed2imap/rubyimap.rb @@ -284,7 +284,11 @@ module Net # Disconnects from the server. def disconnect - @sock.shutdown unless @usessl + if @usessl + @sock.to_io.shutdown + else + @sock.shutdown + end @receiver_thread.join @sock.close end |