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() } }