From ae2def146399745a8dba5113d5e1b57292a258e8 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 14 Feb 2021 12:45:01 +0000 Subject: Add README.md --- pipeln.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pipeln.go') diff --git a/pipeln.go b/pipeln.go index 507ab33..c836f28 100644 --- a/pipeln.go +++ b/pipeln.go @@ -62,10 +62,10 @@ func (ln *PipeListenerDialer) Dial(_, addr string) (net.Conn, error) { } s, c := net.Pipe() select { - case <-ln.done: - return nil, ErrClosed case ln.conns <- s: return c, nil + case <-ln.done: + return nil, ErrClosed } } -- cgit v1.2.3-70-g09d2