fix logging accuracy

This commit is contained in:
Robert Habermeier 2016-10-03 20:09:57 +02:00
parent a7b5dff252
commit 5e382602dd
1 changed files with 2 additions and 1 deletions

View File

@ -515,11 +515,12 @@ impl<K: Kind> VerificationQueue<K> {
let mut verifiers = self.verifiers.lock();
let len = verifiers.len();
// never remove the last thread.
if len == 1 {
return;
}
debug!(target: "verification", "Removing verification thread #{}", len);
debug!(target: "verification", "Removing verification thread #{}", len + 1);
if let Some(handle) = verifiers.pop() {
handle.conclude();