commit e3d1f3c323a9a0618c6ce3dcb7e956271d173cfb
parent 93b6b49018ea00b8c7503fb4dccf1abdecf37044
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 23 Nov 2007 22:34:44 +0000
yet more imap betterification
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@710 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git 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
@@ -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