P2PServer: fixed m_timer leak
This commit is contained in:
@@ -94,6 +94,7 @@ P2PServer::P2PServer(p2pool* pool)
|
||||
P2PServer::~P2PServer()
|
||||
{
|
||||
uv_timer_stop(&m_timer);
|
||||
uv_close(reinterpret_cast<uv_handle_t*>(&m_timer), nullptr);
|
||||
uv_close(reinterpret_cast<uv_handle_t*>(&m_broadcastAsync), nullptr);
|
||||
|
||||
shutdown_tcp();
|
||||
|
||||
Reference in New Issue
Block a user