From 38de82a5d316a7d09e0614f129722e16f2e2bcce Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 9 Apr 2018 17:18:48 +0200 Subject: [PATCH] don't release locker in abstract mode --- transport/internet/domainsocket/listener.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/internet/domainsocket/listener.go b/transport/internet/domainsocket/listener.go index 12c41dc3..be3eb256 100644 --- a/transport/internet/domainsocket/listener.go +++ b/transport/internet/domainsocket/listener.go @@ -68,7 +68,9 @@ func (ln *Listener) Addr() net.Addr { } func (ln *Listener) Close() error { - ln.locker.Release() + if ln.locker != nil { + ln.locker.Release() + } return ln.ln.Close() }