summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-13 20:33:53 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-02-13 20:33:53 +0000
commita447f2129a5c2ce4eac92b249e5881cc88a90494 (patch)
tree1c673adcddacaaea896db1454025578cdca26cde
parent5ecbe2229878fcabeaca1defe7a7c4a3d4014c50 (diff)
downloadfeed2imap-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--ChangeLog5
-rw-r--r--lib/feed2imap/rubyimap.rb6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9333bfe..8b836cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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