Skip to content

Commit b7d18a9

Browse files
committed
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 <[email protected]>
1 parent 5b96eed commit b7d18a9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

connectd/connectd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,6 @@ void peer_conn_closed(struct peer *peer)
19001900
struct connecting *connect = find_connecting(peer->daemon, &peer->id);
19011901

19021902
/* These should be closed already! */
1903-
assert(tal_count(peer->subds) == 0);
19041903
assert(!peer->to_peer);
19051904
assert(peer->ready_to_die || !peer->active);
19061905

0 commit comments

Comments
 (0)