Fixed issues with stalled remote miner

This commit is contained in:
obscuren
2015-03-23 16:35:44 +01:00
parent dc3a9379f5
commit 9be7853e34
2 changed files with 9 additions and 4 deletions

View File

@ -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() {