summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/feed2imap/feed2imap.rb12
2 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 27407c0..cdf8759 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Feed2Imap 0.3 (date unknown)
+============================
+* Fixed a problem when the disconnection from the IMAP server failed.
+ reported by Ludovic Gomez <ludogomez@chez.com>
+
Feed2Imap 0.2 (30/04/2005)
============================
* Fixed a problem with feeds with strange caching bugs (old items going away
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index 1df93bd..348f414 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -27,7 +27,7 @@ require 'logger'
require 'thread'
# Feed2Imap version
-F2I_VERSION = '0.2'
+F2I_VERSION = '0.3'
class Feed2Imap
def initialize(verbose, cacherebuild, configfile)
@@ -146,10 +146,12 @@ class Feed2Imap
@logger.fatal("Exception caught while writing cache to #{@config.cache}: #{$!}")
end
@logger.info("Closing IMAP connections")
- begin
- @config.imap_accounts.each_value { |ac| ac.disconnect }
- rescue
- @logger.fatal("Exception caught while closing connection to #{ac.to_s}: #{$!}")
+ @config.imap_accounts.each_value do |ac|
+ begin
+ ac.disconnect
+ rescue
+ @logger.fatal("Exception caught while closing connection to #{ac.to_s}: #{$!}")
+ end
end
end
end