summaryrefslogtreecommitdiff
path: root/lib/feed2imap
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 /lib/feed2imap
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--lib/feed2imap/rubyimap.rb6
1 files changed, 5 insertions, 1 deletions
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