Skip to content

Commit

Permalink
corrected null-pointer when testmode is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
quetzalcoatl committed Aug 4, 2019
1 parent 1a121f3 commit 8be336a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blagominer/blagominer.cpp
Expand Up @@ -1847,7 +1847,7 @@ int wmain(int argc, wchar_t **argv) {
// Run worker threads
std::vector<std::string> roundDirectories;
// in offline test mode, we dont need parallel workers to read many plot files, it's one specific nonce/scoop generated on the fly
size_t workersNeeded = miningCoin->testround2->mode == t_roundreplay_round_test::RoundTestMode::RMT_OFFLINE ? 1 : miningCoin->mining->dirs.size();
size_t workersNeeded = testmodeConfig.isEnabled && miningCoin->testround2->mode == t_roundreplay_round_test::RoundTestMode::RMT_OFFLINE ? 1 : miningCoin->mining->dirs.size();
for (size_t i = 0; i < workersNeeded; i++)
{
if (miningCoin->mining->dirs.at(i)->done) {
Expand Down

0 comments on commit 8be336a

Please sign in to comment.