Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
8170f96d
Commit
8170f96d
authored
Oct 29, 2014
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
javascript: remove unused quit channel
This fixes the hang in JSRE.Stop.
parent
5920aa7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
javascript_runtime.go
javascript/javascript_runtime.go
+1
-7
No files found.
javascript/javascript_runtime.go
View file @
8170f96d
...
...
@@ -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"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment