Brackets to ensure doesn't function prematurely return
This commit is contained in:
parent
8ed0d72b12
commit
fb1785ab94
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue