From 41d999ebce423d2a7c5b52bbaab7c9dd398d860a Mon Sep 17 00:00:00 2001 From: Jeromy Date: Fri, 28 Oct 2016 16:43:20 -0700 Subject: [PATCH] nitpick: lock release order --- dial_sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dial_sync.go b/dial_sync.go index 8ef51837..734901fc 100644 --- a/dial_sync.go +++ b/dial_sync.go @@ -68,8 +68,8 @@ func (ad *activeDial) decref() { ad.cancel() delete(ad.ds.dials, ad.id) } - ad.ds.dialsLk.Unlock() ad.refCntLk.Unlock() + ad.ds.dialsLk.Unlock() } }