mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
chat fixes
This commit is contained in:
parent
d908527792
commit
5e9ccf42a3
@ -385,6 +385,9 @@ func MiningLoop(jobChan <-chan *client.MultiClientJob, done chan<- bool) {
|
|||||||
} else {
|
} else {
|
||||||
crylog.Info(infoStr, " Mining: ACTIVE")
|
crylog.Info(infoStr, " Mining: ACTIVE")
|
||||||
}
|
}
|
||||||
|
if job.ChatToken != chat.NextToken() {
|
||||||
|
go GetChats()
|
||||||
|
}
|
||||||
|
|
||||||
case <-time.After(30 * time.Second):
|
case <-time.After(30 * time.Second):
|
||||||
break
|
break
|
||||||
@ -392,10 +395,6 @@ func MiningLoop(jobChan <-chan *client.MultiClientJob, done chan<- bool) {
|
|||||||
|
|
||||||
stopWorkers()
|
stopWorkers()
|
||||||
|
|
||||||
if job.ChatToken != chat.NextToken() {
|
|
||||||
go GetChats()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if we need to reinitialize rx dataset
|
// Check if we need to reinitialize rx dataset
|
||||||
newSeed, err := hex.DecodeString(job.SeedHash)
|
newSeed, err := hex.DecodeString(job.SeedHash)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -219,6 +219,7 @@ func (cl *Client) Connect(
|
|||||||
cl.responseChannel = make(chan *Response)
|
cl.responseChannel = make(chan *Response)
|
||||||
cl.alive = true
|
cl.alive = true
|
||||||
jc := make(chan *MultiClientJob)
|
jc := make(chan *MultiClientJob)
|
||||||
|
response.Result.Job.ChatToken = response.ChatToken
|
||||||
go dispatchJobs(cl.conn, jc, response.Result.Job, cl.responseChannel)
|
go dispatchJobs(cl.conn, jc, response.Result.Job, cl.responseChannel)
|
||||||
if response.Warning != nil {
|
if response.Warning != nil {
|
||||||
return nil, response.Warning.Code, response.Warning.Message, jc
|
return nil, response.Warning.Code, response.Warning.Message, jc
|
||||||
|
Loading…
Reference in New Issue
Block a user