accessman: make sure to decrement PendingOpenCount

This commit is contained in:
yyforyongyu committed 2025-06-19 16:05:56 +08:00
1 parent 856ec463ff
commit e003cb5d4a
2 files changed
+33 -5

No files matched your search

+2
View File
@@ -440,6 +440,8 @@ func (a *accessMan) newOpenChan(remotePub *btcec.PublicKey) error {
}
peerCount.HasOpenOrClosedChan = true
peerCount.PendingOpenCount -= 1
a.peerCounts[peerMapKey] = peerCount
newStatus := peerSlotStatus{