Skip to content

Commit d56a71f

Browse files
committed
DISPATCH-2359: Added code to link cleanup that would send detaches on link routed links.
1 parent cc50e30 commit d56a71f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/router_core/connections.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,10 @@ static void qdr_link_cleanup_CT(qdr_core_t *core, qdr_connection_t *conn, qdr_li
10291029
qdrc_endpoint_do_cleanup_CT(core, link->core_endpoint);
10301030

10311031
//
1032-
// If the link has a connected peer, unlink the peer
1032+
// If the link has a connected peer, detach and unlink the peer
10331033
//
10341034
if (link->connected_link) {
1035+
qdr_link_outbound_detach_CT(core, link->connected_link, 0, QDR_CONDITION_ROUTED_LINK_LOST, true);
10351036
link->connected_link->connected_link = 0;
10361037
link->connected_link = 0;
10371038
}

0 commit comments

Comments
 (0)