Commit 8170f96d authored by Felix Lange's avatar Felix Lange

javascript: remove unused quit channel

This fixes the hang in JSRE.Stop.
parent 5920aa7b
...@@ -26,7 +26,6 @@ type JSRE struct { ...@@ -26,7 +26,6 @@ type JSRE struct {
pipe *ethpipe.JSPipe pipe *ethpipe.JSPipe
events event.Subscription events event.Subscription
quitChan chan bool
objectCb map[string][]otto.Value objectCb map[string][]otto.Value
} }
...@@ -51,7 +50,6 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE { ...@@ -51,7 +50,6 @@ func NewJSRE(ethereum *eth.Ethereum) *JSRE {
otto.New(), otto.New(),
ethpipe.NewJSPipe(ethereum), ethpipe.NewJSPipe(ethereum),
nil, nil,
make(chan bool),
make(map[string][]otto.Value), make(map[string][]otto.Value),
} }
...@@ -104,10 +102,6 @@ func (self *JSRE) Require(file string) error { ...@@ -104,10 +102,6 @@ func (self *JSRE) Require(file string) error {
func (self *JSRE) Stop() { func (self *JSRE) Stop() {
self.events.Unsubscribe() self.events.Unsubscribe()
// Kill the main loop
self.quitChan <- true
close(self.quitChan)
jsrelogger.Infoln("stopped") jsrelogger.Infoln("stopped")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment