MCPcopy
hub / github.com/wavetermdev/waveterm / close_nolock

Method close_nolock

pkg/wslconn/wslconn.go:158–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156}
157
158func (conn *WslConn) close_nolock() {
159 // does not set status (that should happen at another level)
160 if conn.DomainSockListener != nil {
161 conn.DomainSockListener.Close()
162 conn.DomainSockListener = nil
163 conn.DomainSockName = ""
164 }
165 if conn.ConnController != nil {
166 conn.cancelFn() // this suspends the conn controller
167 conn.ConnController = nil
168 }
169 if conn.Client != nil {
170 // conn.Client.Close() is not relevant here
171 // we do not want to completely close the wsl in case
172 // other applications are using it
173 conn.Client = nil
174 }
175}
176
177func (conn *WslConn) GetDomainSocketName() string {
178 conn.Lock.Lock()

Callers 3

CloseMethod · 0.95
ConnectMethod · 0.95
waitForDisconnectMethod · 0.95

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected