()
| 156 | } |
| 157 | |
| 158 | func (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 | |
| 177 | func (conn *WslConn) GetDomainSocketName() string { |
| 178 | conn.Lock.Lock() |
no test coverage detected