aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 04:09:32 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-10-30 04:09:32 +0800
commitce2ec1980bbc97fb9b2acc27c6249be1249fa44c (patch)
tree975a2a75b04f0c7c3cc2004e020c66c9a10a57d0 /javascript
parentf05d422a97bfdfbf141a455d25566779c4b32da9 (diff)
parente252dbf989f8a8e08e3edcaf075febee315e53fd (diff)
downloaddexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar.gz
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar.bz2
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar.lz
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar.xz
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.tar.zst
dexon-ce2ec1980bbc97fb9b2acc27c6249be1249fa44c.zip
Merge pull request #166 from fjl/fix/mist-quit
Fix Mist Shutdown
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")
}