mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-19 05:44:12 +01:00
connectd: remove assert which can trigger.
I have a test which reproduces this, too, and it's been seen in the wild. It seems we can add a subd as we're closing, which causes this assert to trigger. Fixes: #5254 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
1c495ca5a8
commit
4343f720be
@ -1900,7 +1900,6 @@ void peer_conn_closed(struct peer *peer)
|
||||
struct connecting *connect = find_connecting(peer->daemon, &peer->id);
|
||||
|
||||
/* These should be closed already! */
|
||||
assert(tal_count(peer->subds) == 0);
|
||||
assert(!peer->to_peer);
|
||||
assert(peer->ready_to_die || !peer->active);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user