mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed a rare crash on shutdown
This commit is contained in:
parent
b3f562caab
commit
6dd72dfcd5
1 changed files with 5 additions and 0 deletions
|
@ -771,6 +771,11 @@ void P2PServer::Peer::normalize()
|
|||
|
||||
void P2PServer::broadcast(const PoolBlock& block, const PoolBlock* parent)
|
||||
{
|
||||
// Don't broadcast blocks when shutting down
|
||||
if (m_finished.load()) {
|
||||
return;
|
||||
}
|
||||
|
||||
MinerData miner_data = m_pool->miner_data();
|
||||
|
||||
if (block.m_txinGenHeight + 2 < miner_data.height) {
|
||||
|
|
Loading…
Reference in a new issue