// Accept is analogous to net.TCPListener.Accept but may return a connection
// closed error if the connection was requested to shut down.
Accept is analogous to net.TCPListener.Accept but may return a connection
closed error if the connection was requested to shut down.
// Accept is analogous to net . TCPListener . Accept but may return a connection // closed error if the connection was requested to shut down .
func (listen *StopListener) Accept() (net.Conn, error) {
	conn, err := listen.TCPListener.Accept()
	if !listen.active {
		return nil, StopRequestError{} 
	}
	if err != nil {
		return nil, err 
	}
	return conn, err
}
func ( listen * StopListener ) Accept ( ) ( net . Conn , error ) { conn , err := listen . TCPListener . Accept ( ) if ! listen . active { return nil , StopRequestError { } } if err != nil { return nil , err } return conn , err }
Accept is analogous to net.TCPListener.Accept but may return a connection
closed error if the connection was requested to shut down.
Accept is analogous to net . TCPListener . Accept but may return a connection closed error if the connection was requested to shut down .
// ### return, stop requested ### // ### return, error ###