Fix crash when share is found before pool login

This commit is contained in:
SChernykh 2020-02-17 20:22:09 +01:00
parent dfaca04167
commit fb0b638cbb

View file

@ -181,7 +181,7 @@ int64_t xmrig::Client::send(const rapidjson::Value &obj)
int64_t xmrig::Client::submit(const JobResult &result)
{
# ifndef XMRIG_PROXY_PROJECT
if (result.clientId != m_rpcId || m_state != ConnectedState) {
if (result.clientId != m_rpcId || m_rpcId.isNull() || m_state != ConnectedState) {
return -1;
}
# endif