Skip to content

Commit

Permalink
Ensure VM client conn is closed on shutdown
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Batschelet <[email protected]>
  • Loading branch information
hexfusion committed Oct 3, 2023
1 parent 5d9076f commit 503c4e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vms/rpcchainvm/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (f *factory) New(log logging.Logger) (interface{}, error) {
}

vm := NewClient(vmpb.NewVMClient(clientConn))
vm.conns = append(vm.conns, clientConn)
vm.SetProcess(stopper, status.Pid, f.processTracker)

f.runtimeTracker.TrackRuntime(stopper)
Expand Down

0 comments on commit 503c4e9

Please sign in to comment.