aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2014-10-29 10:00:29 +0800
committerFelix Lange <fjl@twurst.com>2014-10-29 10:00:29 +0800
commit8170f96dedb983c391d26378726d7fd6921ff959 (patch)
treefe88c33b8215eab119d0526212e5a3e94d261062 /javascript
parent5920aa7be6fb973c7cbae34c9d4af03665933c51 (diff)
downloaddexon-8170f96dedb983c391d26378726d7fd6921ff959.tar.gz
dexon-8170f96dedb983c391d26378726d7fd6921ff959.tar.zst
dexon-8170f96dedb983c391d26378726d7fd6921ff959.zip
javascript: remove unused quit channel
This fixes the hang in JSRE.Stop.
Diffstat (limited to 'javascript')
-rw-r--r--javascript/javascript_runtime.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/javascript/javascript_runtime.go b/javascript/javascript_runtime.go
index 704635d97..6c5a87338 100644
--- a/javascript/javascript_runtime.go
+++ b/javascript/javascript_runtime.go
@@ -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")
}