]> git.cworth.org Git - sup/commitdiff
grrr
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 1 Apr 2007 22:49:06 +0000 (22:49 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sun, 1 Apr 2007 22:49:06 +0000 (22:49 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@361 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/mbox/loader.rb

index 6c9c7019c2ed2515d556d76902ce7a3e053eb14f..c96bd351ffd6c69dec33bced226a6efc54cccf5c 100644 (file)
@@ -26,7 +26,7 @@ class Loader < Source
   end
 
   def check
-    if cur_offset > end_offset
+    if (cur_offset ||= start_offset) > end_offset
       raise OutOfSyncSourceError, "mbox file is smaller than last recorded message offset. Messages have probably been deleted by another client."
     end
   end