Skip to content

Commit

Permalink
backport of commit 07215e8 (#13287)
Browse files Browse the repository at this point in the history
This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-consul-core authored May 27, 2022
1 parent 389af92 commit 57706fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connect/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ func (p *Proxy) Serve() error {
cfg = newCfg

case <-p.stopChan:
if p.service != nil {
p.service.Close()
}
return nil
}
}
Expand Down Expand Up @@ -153,7 +156,4 @@ func (p *Proxy) startListener(name string, l *Listener) error {
// called only once.
func (p *Proxy) Close() {
close(p.stopChan)
if p.service != nil {
p.service.Close()
}
}

0 comments on commit 57706fd

Please sign in to comment.