Skip to content

Commit

Permalink
notmuch new: Fix progress notification on database upgrade.
Browse files Browse the repository at this point in the history
This was firing continuously rather than just once per second as
intended.
  • Loading branch information
cworth-gh committed Jan 8, 2010
1 parent e307e99 commit 1c86b48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,10 @@ notmuch_database_upgrade (notmuch_database_t *notmuch,
notmuch_messages_has_more (messages);
notmuch_messages_advance (messages))
{
if (do_progress_notify)
if (do_progress_notify) {
progress_notify (closure, count, total);
do_progress_notify = 0;
}

message = notmuch_messages_get (messages);

Expand Down

0 comments on commit 1c86b48

Please sign in to comment.