about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-28 10:12:58 +0000
committerEric Wong <e@yhbt.net>2020-08-28 22:19:25 +0000
commitb1054300d1e33cb7b2279922c8f73628551fbf8f (patch)
tree5befa79abb6f02709a1b9d621e2962bcb700565a /lib
parent0da3a1b70826a48ec0c016787b08aa2bc62bb375 (diff)
downloadpublic-inbox-b1054300d1e33cb7b2279922c8f73628551fbf8f.tar.gz
Data needs to hit inboxes, first.  Otherwise it's possible to
skip messages in case git-fast-import is killed before it sees
"done\n".  Now, -watch will just waste a little bandwidth in
re-downloading a seen message if it's interrupted immediately
before updating IMAPTracker.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/WatchMaildir.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 4ae400f7..78aec8a2 100644
--- a/lib/PublicInbox/WatchMaildir.pm
+++ b/lib/PublicInbox/WatchMaildir.pm
@@ -918,8 +918,8 @@ sub nntp_fetch_all ($$$) {
                 }
                 $last_art = $art;
         }
-        $itrk->update_last(0, $last_art) if defined $last_art;
         _done_for_now($self);
+        $itrk->update_last(0, $last_art) if defined $last_art;
         $err;
 }