From 4343f720be8d67787426686ddc25bf64f803984f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 14 May 2022 14:28:48 +0930 Subject: [PATCH] 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 --- connectd/connectd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/connectd/connectd.c b/connectd/connectd.c index 62362f84a..deb604f45 100644 --- a/connectd/connectd.c +++ b/connectd/connectd.c @@ -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);