accessman: make sure to decrement PendingOpenCount

This commit is contained in:
yyforyongyu
2025-06-03 20:24:00 +08:00
committed by Olaoluwa Osuntokun
parent d9e3412ed5
commit 0b0513d88c
2 changed files with 33 additions and 5 deletions

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{