diff --git a/dial_sync.go b/dial_sync.go
index <HASH>..<HASH> 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()
 	}
 }
nitpick: lock release order