mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Fixed memory leak in some conditions.
This commit is contained in:
@@ -293,7 +293,7 @@ void xmrig::Client::tick(uint64_t now)
|
||||
}
|
||||
|
||||
if (m_state == ConnectingState && m_expire && now > m_expire) {
|
||||
return reconnect();
|
||||
close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -975,7 +975,7 @@ void xmrig::Client::onConnect(uv_connect_t *req, int status)
|
||||
LOG_ERR("[%s] connect error: \"%s\"", client->url(), uv_strerror(status));
|
||||
}
|
||||
|
||||
if (client->state() == ReconnectingState) {
|
||||
if (client->state() == ReconnectingState || client->state() == ClosingState) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user