Skip to content

Commit

Permalink
fix(core): catch EPIPE error when closing port proxies
Browse files Browse the repository at this point in the history
Fixes #2370
  • Loading branch information
edvald committed May 6, 2021
1 parent 3871135 commit bdb0085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ function stopPortProxy(proxy: PortProxy, log?: LogEntry) {
// TODO: call stopPortForward handler
log && log.debug(`Stopping port forward to ${proxy.key}`)
delete activeProxies[proxy.key]
proxy.server.close()

try {
proxy.server.close()
} catch {}
}

function getHostname(service: GardenService, spec: ForwardablePort) {
Expand Down

0 comments on commit bdb0085

Please sign in to comment.