]> git.notmuchmail.org Git - sup/commitdiff
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@298 5c8cc53c-5e98-4d25-b20a-d8db53a...
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Feb 2007 23:59:55 +0000 (23:59 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Fri, 2 Feb 2007 23:59:55 +0000 (23:59 +0000)
lib/sup/index.rb

index 9639430262981f4becf1197a3f975cb96ef61958..425c12fe8e50391530d27f89eae9b2c28018942c 100644 (file)
@@ -124,7 +124,7 @@ class Index
           update_message m, docid, entry
         else
           add_message m
-          UpdateManager.relay :add, m
+          UpdateManager.relay :add, m if UpdateManager.instantiated?
         end
       rescue MessageFormatError, SourceError => e
         Redwood::log "ignoring erroneous message at #{source}##{offset}: #{e.message}"