Skip to content

Commit

Permalink
Add a further debug_assert that disconnecting peers are connected
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Feb 15, 2023
1 parent 1ea804a commit 08ab1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6318,7 +6318,7 @@ where
debug_assert!(peer_state.is_connected, "A disconnected peer cannot disconnect");
peer_state.is_connected = false;
peer_state.ok_to_remove(true)
} else { true }
} else { debug_assert!(false, "Unconnected peer disconnected"); true }
};
if remove_peer {
per_peer_state.remove(counterparty_node_id);
Expand Down

0 comments on commit 08ab1bb

Please sign in to comment.