Make sfen reader only stop when it's destroyed. Now it is fully RAII.

This commit is contained in:
Tomasz Sobczyk
2020-10-22 14:46:19 +02:00
committed by nodchip
parent c58aa9696a
commit ad3d1b42e4
2 changed files with 2 additions and 9 deletions

View File

@@ -502,8 +502,6 @@ namespace Learner
<< "Error reading sfen_for_mse. Read " << sfen_for_mse.size()
<< " out of " << sfen_for_mse_size << '\n';
sr.stop();
return;
}
@@ -541,8 +539,6 @@ namespace Learner
break;
}
sr.stop();
Eval::NNUE::finalize_net();
save(true);