aboutsummaryrefslogtreecommitdiffstats
path: root/miner/remote_agent.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-23 23:35:44 +0800
committerobscuren <geffobscura@gmail.com>2015-03-23 23:35:44 +0800
commit9be7853e349f97917120fd925e2c5a462bd78846 (patch)
treeb194545cd7b8ee45eaddb17553cab02c07bd2610 /miner/remote_agent.go
parentdc3a9379f50d0d5b41abc28acc2a871534968a77 (diff)
downloaddexon-9be7853e349f97917120fd925e2c5a462bd78846.tar.gz
dexon-9be7853e349f97917120fd925e2c5a462bd78846.tar.zst
dexon-9be7853e349f97917120fd925e2c5a462bd78846.zip
Fixed issues with stalled remote miner
Diffstat (limited to 'miner/remote_agent.go')
-rw-r--r--miner/remote_agent.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/miner/remote_agent.go b/miner/remote_agent.go
index 8ea164f34..3911ac61e 100644
--- a/miner/remote_agent.go
+++ b/miner/remote_agent.go
@@ -17,7 +17,6 @@ type RemoteAgent struct {
func NewRemoteAgent() *RemoteAgent {
agent := &RemoteAgent{}
- go agent.run()
return agent
}
@@ -33,6 +32,7 @@ func (a *RemoteAgent) SetWorkCh(returnCh chan<- Work) {
func (a *RemoteAgent) Start() {
a.quit = make(chan struct{})
a.workCh = make(chan *types.Block, 1)
+ go a.run()
}
func (a *RemoteAgent) Stop() {