Skip to content

Commit

Permalink
Fix v8 runtime stop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Dec 25, 2023
1 parent 4a381bb commit fbe7a63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtime/v8/v8.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func Start(option *Option) error {

// Stop v8 runtime
func Stop() {
close(isoReady)
if isoReady != nil {
close(isoReady)
}
isoReady = nil
store.Isolates.Range(func(iso store.IStore) bool {
key := iso.Key()
Expand Down

0 comments on commit fbe7a63

Please sign in to comment.