mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 01:42:27 +00:00
Brackets to ensure doesn't function prematurely return
This commit is contained in:
parent
8ed0d72b12
commit
fb1785ab94
1 changed files with 2 additions and 0 deletions
|
@ -281,8 +281,10 @@ namespace cryptonote
|
|||
LOG_PRINT_L1("Miner has received stop signal");
|
||||
|
||||
if (!is_mining())
|
||||
{
|
||||
LOG_PRINT_L1("Not mining - nothing to stop" );
|
||||
return true;
|
||||
}
|
||||
|
||||
send_stop_signal();
|
||||
CRITICAL_REGION_LOCAL(m_threads_lock);
|
||||
|
|
Loading…
Reference in a new issue