diff --git a/transport/mock/mock.go b/transport/mock/mock.go index 320903ca..b32bea89 100644 --- a/transport/mock/mock.go +++ b/transport/mock/mock.go @@ -79,7 +79,7 @@ func (m *mockListener) Accept(fn func(transport.Socket)) error { return nil case c := <-m.conn: go fn(&mockSocket{ - lexit: make(chan bool), + lexit: c.lexit, exit: c.exit, send: c.recv, recv: c.send,