Skip to content

Commit

Permalink
Fix duplicate close PortForwarder (istio#15813)
Browse files Browse the repository at this point in the history
  • Loading branch information
kebe7jun authored and istio-testing committed Jul 27, 2019
1 parent 712cfb8 commit 4e1ebb9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion istioctl/pkg/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ func (client *Client) PodsForSelector(namespace, labelSelector string) (*v1.PodL
}

func RunPortForwarder(fw *PortForward, readyFunc func(fw *PortForward) error) error {
defer fw.Forwarder.Close()

errCh := make(chan error)
go func() {
Expand Down

0 comments on commit 4e1ebb9

Please sign in to comment.