summaryrefslogtreecommitdiff
path: root/lib/feed2imap
diff options
context:
space:
mode:
authorlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-03 21:24:08 +0000
committerlnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972>2006-12-03 21:24:08 +0000
commit7b028b844046e20f8fea391e14d75ede1fc5bc38 (patch)
tree5e92bc54f8d7104f56382bd11a8421dba6ce8af9 /lib/feed2imap
parentf713b3f673c8968ad6dd2b272947eb844697d07b (diff)
downloadfeed2imap-7b028b844046e20f8fea391e14d75ede1fc5bc38.tar.gz
feed2imap-7b028b844046e20f8fea391e14d75ede1fc5bc38.tar.bz2
feed2imap-7b028b844046e20f8fea391e14d75ede1fc5bc38.zip
fixed small bug during disconnections
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@118 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to 'lib/feed2imap')
-rw-r--r--lib/feed2imap/feed2imap.rb1
-rw-r--r--lib/feed2imap/imap.rb5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 72743f5..a2474be 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -232,7 +232,6 @@ class Feed2Imap
@logger.info("Closing IMAP connections ...")
@config.imap_accounts.each_value do |ac|
begin
- ac.logout
ac.disconnect
rescue
# servers tend to cause an exception to be raised here, hence the INFO level.
diff --git a/lib/feed2imap/imap.rb b/lib/feed2imap/imap.rb
index 038833b..933a561 100644
--- a/lib/feed2imap/imap.rb
+++ b/lib/feed2imap/imap.rb
@@ -77,7 +77,10 @@ class ImapAccount
# disconnect from the IMAP server
def disconnect
- @connection.disconnect if @connection
+ if @connection
+ @connection.logout
+ @connection.disconnect
+ end
end
# Returns true if the folder exist
d gui_helperRené 'Necoro' Neumann4-249/+266 2008-03-18Splitted windows.pyRené 'Necoro' Neumann10-424/+549 2008-03-12Moved get_dependencies to top package classRené 'Necoro' Neumann4-50/+85 2008-03-11improved performance by caching the use_expand queriesRené 'Necoro' Neumann1-5/+14 2008-03-11use catapult varsRené 'Necoro' Neumann2-4/+6 2008-03-11Updated catapult stuffRené 'Necoro' Neumann5-56/+108 2008-03-10Generate correct KeyNotFoundExceptionRené 'Necoro' Neumann1-2/+2 2008-03-09Small changesRené 'Necoro' Neumann3-1/+4 2008-03-07Better session handlingRené 'Necoro' Neumann1-5/+54 2008-03-07Small changesRené 'Necoro' Neumann1-1/+4 2008-03-07Updated shm module to 1.2René 'Necoro' Neumann1-8/+21 2008-03-07Update TODORené 'Necoro' Neumann1-3/+1 2008-03-07hmm ... yesRené 'Necoro' Neumann1-1/+1 2008-03-06Used better exceptions for configuration parserRené 'Necoro' Neumann1-26/+114 2008-03-06Update translationRené 'Necoro' Neumann2-349/+393 2008-03-06Update createpot.shRené 'Necoro' Neumann1-3/+2 2008-03-06Use 'nofork' instead of 'nolistener'René 'Necoro' Neumann1-3/+3 2008-03-05Install glade files into template dir and not data dirRené 'Necoro' Neumann2-2/+1 2008-03-05Added dependency listRené 'Necoro' Neumann3-117/+237