From e0e560a5b61ce41b1907d699911cae86a793d5d7 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 22 Nov 2014 17:13:45 +0000 Subject: [PATCH] StoreSession: Fixed completion mechanism This fixes bug #451 --- pv/storesession.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pv/storesession.cpp b/pv/storesession.cpp index f6fef463..221804c4 100644 --- a/pv/storesession.cpp +++ b/pv/storesession.cpp @@ -198,6 +198,9 @@ void StoreSession::store_proc(shared_ptr snapshot) units_stored_ = start_sample >> progress_scale; } + // Zeroing the progress variables indicates completion + units_stored_ = unit_count_ = 0; + progress_updated(); output_.reset(); -- 2.30.2