提交 8170f96d 编写于 作者: F Felix Lange

javascript: remove unused quit channel

This fixes the hang in JSRE.Stop.
上级 5920aa7b
......@@ -25,8 +25,7 @@ type JSRE struct {
Vm *otto.Otto
pipe *ethpipe.JSPipe
events event.Subscription
quitChan chan bool
events event.Subscription
objectCb map[string][]otto.Value
}
......@@ -51,7 +50,6 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
otto.New(),
ethpipe.NewJSPipe(ethereum),
nil,
make(chan bool),
make(map[string][]otto.Value),
}
......@@ -104,10 +102,6 @@ func (self *JSRE) Require(file string) error {
func (self *JSRE) Stop() {
self.events.Unsubscribe()
// Kill the main loop
self.quitChan <- true
close(self.quitChan)
jsrelogger.Infoln("stopped")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册