Brackets to ensure doesn't function prematurely return

This commit is contained in:
NanoAkron 2016-10-04 01:10:12 +01:00
parent 8ed0d72b12
commit fb1785ab94
No known key found for this signature in database
GPG Key ID: 346A337AA2EA8B57
1 changed files with 2 additions and 0 deletions

View File

@ -281,8 +281,10 @@ namespace cryptonote
LOG_PRINT_L1("Miner has received stop signal"); LOG_PRINT_L1("Miner has received stop signal");
if (!is_mining()) if (!is_mining())
{
LOG_PRINT_L1("Not mining - nothing to stop" ); LOG_PRINT_L1("Not mining - nothing to stop" );
return true; return true;
}
send_stop_signal(); send_stop_signal();
CRITICAL_REGION_LOCAL(m_threads_lock); CRITICAL_REGION_LOCAL(m_threads_lock);