mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-08-15 08:20:30 +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 {
|
||||
crylog.Info(infoStr, " Mining: ACTIVE")
|
||||
}
|
||||
if job.ChatToken != chat.NextToken() {
|
||||
go GetChats()
|
||||
}
|
||||
|
||||
case <-time.After(30 * time.Second):
|
||||
break
|
||||
@ -392,10 +395,6 @@ func MiningLoop(jobChan <-chan *client.MultiClientJob, done chan<- bool) {
|
||||
|
||||
stopWorkers()
|
||||
|
||||
if job.ChatToken != chat.NextToken() {
|
||||
go GetChats()
|
||||
}
|
||||
|
||||
// Check if we need to reinitialize rx dataset
|
||||
newSeed, err := hex.DecodeString(job.SeedHash)
|
||||
if err != nil {
|
||||
|
@ -219,6 +219,7 @@ func (cl *Client) Connect(
|
||||
cl.responseChannel = make(chan *Response)
|
||||
cl.alive = true
|
||||
jc := make(chan *MultiClientJob)
|
||||
response.Result.Job.ChatToken = response.ChatToken
|
||||
go dispatchJobs(cl.conn, jc, response.Result.Job, cl.responseChannel)
|
||||
if response.Warning != nil {
|
||||
return nil, response.Warning.Code, response.Warning.Message, jc
|
||||
|
Loading…
Reference in New Issue
Block a user