]> git.cworth.org Git - sup/commitdiff
no idea why this started breaking for me, but a trivial change...
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 23 Nov 2007 17:23:21 +0000 (17:23 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 23 Nov 2007 17:23:21 +0000 (17:23 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@705 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup

diff --git a/bin/sup b/bin/sup
index b1ca4c02d50220ee602c83447124a747e04cff42..a98753ff2724d3003c8d4cdb3426e5b8cb82f3c9 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -179,13 +179,14 @@ begin
   Redwood::report_broken_sources
   
   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 if s.respond_to? :connect
+    end
   end
 
   imode.load_threads :num => ibuf.content_height, :when_done => lambda { reporting_thread { sleep 1; PollManager.poll } unless $opts[:no_threads] }