api(portForward): ensure that rendezvousConn is closed
This commit is contained in:
parent
b4ee888077
commit
d96249cfbb
|
|
@ -89,6 +89,9 @@ func (controller *Controller) portForward(
|
|||
|
||||
return responder.Error(err)
|
||||
}
|
||||
defer func() {
|
||||
_ = rendezvousConn.Close()
|
||||
}()
|
||||
|
||||
// Worker will asynchronously start port forwarding, so we wait
|
||||
wsConn, err := websocket.Accept(ctx.Writer, ctx.Request, &websocket.AcceptOptions{
|
||||
|
|
|
|||
Loading…
Reference in New Issue