mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 21:03:28 +01:00
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
Block a user