mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
P2PServer: fixed use after free on shutdown
This commit is contained in:
parent
d08ac60fd9
commit
2cdb8b5323
1 changed files with 4 additions and 0 deletions
|
@ -1029,6 +1029,10 @@ int P2PServer::deserialize_block(const uint8_t* buf, uint32_t size, bool compact
|
||||||
|
|
||||||
void P2PServer::on_timer()
|
void P2PServer::on_timer()
|
||||||
{
|
{
|
||||||
|
if (m_pool->stopped()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
++m_timerCounter;
|
++m_timerCounter;
|
||||||
|
|
||||||
if (!m_initialPeerList.empty()) {
|
if (!m_initialPeerList.empty()) {
|
||||||
|
|
Loading…
Reference in a new issue