lxd/util/net.go
func (l *inMemoryListener) Accept() (net.Conn, error) {
	select {
	case conn := <-l.conns:
		return conn, nil
	case <-l.closed:
		return nil, fmt.Errorf("closed")
	}
}
func (l *inMemoryListener) Accept() (net.Conn, error) {
	select {
	case conn := <-l.conns:
		return conn, nil
	case <-l.closed:
		return nil, fmt.Errorf("closed")
	}
}
func ( l * inMemoryListener ) Accept ( ) ( net . Conn , error ) { select { case conn := <- l . conns : return conn , nil case <- l . closed : return nil , fmt . Errorf ( " " ) } }
// Accept waits for and returns the next connection to the listener.
Accept waits for and returns the next connection to the listener .