mirror of
https://github.com/ACINQ/eclair.git
synced 2025-02-23 22:46:44 +01:00
Minor: ignore "disconnecting" message in Channel (#1231)
This message is sent by the `Peer` in answer to a `Peer.Disconnect` command.
This commit is contained in:
parent
b6f922f3c3
commit
6ffd35f8a7
1 changed files with 3 additions and 0 deletions
|
@ -1638,6 +1638,9 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
|
|||
// we receive this when we send command to ourselves
|
||||
case Event("ok", _) => stay
|
||||
|
||||
// we receive this when we tell the peer to disconnect
|
||||
case Event("disconnecting", _) => stay
|
||||
|
||||
// when we realize we need to update our network fees, we send a CMD_UPDATE_FEE to ourselves which may result in this error being sent back to ourselves, this can be ignored
|
||||
case Event(Status.Failure(_: CannotAffordFees), _) => stay
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue