diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2006-02-13 20:33:53 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2006-02-13 20:33:53 +0000 |
commit | a447f2129a5c2ce4eac92b249e5881cc88a90494 (patch) | |
tree | 1c673adcddacaaea896db1454025578cdca26cde | |
parent | 5ecbe2229878fcabeaca1defe7a7c4a3d4014c50 (diff) | |
download | feed2imap-a447f2129a5c2ce4eac92b249e5881cc88a90494.tar.gz feed2imap-a447f2129a5c2ce4eac92b249e5881cc88a90494.tar.bz2 feed2imap-a447f2129a5c2ce4eac92b249e5881cc88a90494.zip |
fixes imaps disconnection problem
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@85 f70e237a-67f3-0310-a06c-d2b8a7116972
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 |