From: wmorgan Date: Fri, 23 Nov 2007 22:34:44 +0000 (+0000) Subject: yet more imap betterification X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=e3d1f3c323a9a0618c6ce3dcb7e956271d173cfb;p=sup yet more imap betterification git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@710 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup b/bin/sup index 1a11537..9ff137b 100644 --- a/bin/sup +++ b/bin/sup @@ -171,6 +171,17 @@ begin bm.draw_screen + Index.usual_sources.each do |s| + next unless s.respond_to? :connect + reporting_thread do + begin + s.connect + rescue SourceError => e + Redwood::log "fatal error loading from #{s}: #{e.message}" + end + end + end + imode.load_threads :num => ibuf.content_height, :when_done => lambda { reporting_thread { sleep 1; PollManager.poll } unless $opts[:no_threads] } unless $opts[:no_threads] diff --git a/lib/sup/util.rb b/lib/sup/util.rb index a402ed8..baf4c50 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -508,9 +508,7 @@ class Recoverable def has_errors?; !@e.nil?; end def error; @e; end - def method_missing m, *a, &b - @mutex.synchronize { __pass m, *a, &b } - end + def method_missing m, *a, &b; __pass m, *a, &b end def id; __pass :id; end def to_s; __pass :to_s; end