mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 22:56:52 +01:00
Add carve out to ignore ConnectPeer request if state is NodeShuttingDown (#5352)
This commit is contained in:
parent
421970dcf5
commit
56b1a557a8
1 changed files with 4 additions and 0 deletions
|
@ -553,6 +553,10 @@ case class PeerManager(
|
|||
}
|
||||
case (state, c: ConnectPeer) =>
|
||||
state match {
|
||||
case s: NodeShuttingDown =>
|
||||
logger.warn(
|
||||
s"Ignoring connect peer request as node is shutting down, c=$c")
|
||||
Future.successful(s)
|
||||
case runningState: NodeRunningState =>
|
||||
val peer = c.peer
|
||||
val curPeerData = finder.popFromCache(peer).get
|
||||
|
|
Loading…
Add table
Reference in a new issue