mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 00:37:46 +00:00
Merge pull request #1555 from SChernykh/dev
Fix crash when share is found before pool login
This commit is contained in:
commit
2863ade0c2
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ int64_t xmrig::Client::send(const rapidjson::Value &obj)
|
||||||
int64_t xmrig::Client::submit(const JobResult &result)
|
int64_t xmrig::Client::submit(const JobResult &result)
|
||||||
{
|
{
|
||||||
# ifndef XMRIG_PROXY_PROJECT
|
# 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;
|
return -1;
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue