StoreSession: Fixed completion mechanism
authorJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 22 Nov 2014 17:13:45 +0000 (17:13 +0000)
committerJoel Holdsworth <joel@airwebreathe.org.uk>
Sat, 22 Nov 2014 17:15:57 +0000 (17:15 +0000)
This fixes bug #451

pv/storesession.cpp

index f6fef4635c630fadcb772c14e1013b96c2d61a17..221804c40baaf07721f7c229704f5cae072f1ca4 100644 (file)
@@ -198,6 +198,9 @@ void StoreSession::store_proc(shared_ptr<data::LogicSnapshot> snapshot)
                units_stored_ = start_sample >> progress_scale;
        }
 
+       // Zeroing the progress variables indicates completion
+       units_stored_ = unit_count_ = 0;
+
        progress_updated();
 
        output_.reset();