P2PServer: fixed m_timer leak

This commit is contained in:
SChernykh
2021-10-21 19:10:11 +02:00
parent 352ad81a0a
commit 04d18cdf1d
2 changed files with 23 additions and 1 deletions
+1
View File
@@ -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();