mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-26 21:42:48 +01:00
Ignore messages in queue that were queued before we disconnected peer (#5131)
This commit is contained in:
parent
cd812ac7a3
commit
fc99087c89
1 changed files with 3 additions and 2 deletions
|
@ -754,8 +754,9 @@ case class PeerManager(
|
|||
val peerMsgSenderOptF = getPeerMsgSender(peer)
|
||||
peerMsgSenderOptF.flatMap {
|
||||
case None =>
|
||||
Future.failed(new RuntimeException(
|
||||
s"Couldn't find PeerMessageSender that corresponds with peer=$peer msg=${payload.commandName}. Was it disconnected?"))
|
||||
logger.warn(
|
||||
s"Ignoring received msg=${payload.commandName} from peer=$peer because it was disconnected, peers=$peers state=${dmh.state}")
|
||||
Future.successful(dmh)
|
||||
case Some(_) =>
|
||||
val peerDmh = dmh.copy(peerDataOpt = getPeerData(peer))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue