mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
cmd/geth: don't defer a jsre close, it cannot handle it
This commit is contained in:
parent
16a23ff740
commit
548c8870c7
1 changed files with 1 additions and 3 deletions
|
|
@ -147,8 +147,6 @@ func ephemeralConsole(ctx *cli.Context) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Fatalf("Failed to start the JavaScript console: %v", err)
|
utils.Fatalf("Failed to start the JavaScript console: %v", err)
|
||||||
}
|
}
|
||||||
defer console.Stop(false)
|
|
||||||
|
|
||||||
// Evaluate each of the specified JavaScript files
|
// Evaluate each of the specified JavaScript files
|
||||||
for _, file := range ctx.Args() {
|
for _, file := range ctx.Args() {
|
||||||
if err = console.Execute(file); err != nil {
|
if err = console.Execute(file); err != nil {
|
||||||
|
|
@ -161,7 +159,7 @@ func ephemeralConsole(ctx *cli.Context) {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
<-abort
|
<-abort
|
||||||
os.Exit(0)
|
console.Stop(false)
|
||||||
}()
|
}()
|
||||||
console.Stop(true)
|
console.Stop(true)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue