fix check for error indicating rejected share

This commit is contained in:
cryptonote-social 2020-12-22 11:29:47 -08:00
parent d0de4e6ad6
commit 6f8bed0f31

View File

@ -637,7 +637,7 @@ func goMine(job client.MultiClientJob, thread int) {
crylog.Warn("Submit work client failure:", jobid, err)
return
}
if len(resp.Error) > 0 {
if resp.Error != nil {
stats.ShareRejected()
crylog.Warn("Submit work server error:", jobid, resp.Error)
return