Skip to content

Commit

Permalink
Properly close supervisor status service connections
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Oct 30, 2024
1 parent a1059c8 commit c31ec61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/local-app/pkg/bastion/bastion.go
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ func (b *Bastion) tunnelPorts(ws *Workspace) {
}

func (b *Bastion) doTunnelPorts(ctx context.Context, ws *Workspace) error {
ctx, cancel := context.WithCancel(ctx)
defer cancel()

statusService := supervisor.NewStatusServiceClient(ws.supervisorClient)
status, err := statusService.PortsStatus(ctx, &supervisor.PortsStatusRequest{
Observe: true,
Expand Down

0 comments on commit c31ec61

Please sign in to comment.