From 31cd56875a9966fa86239f69812b25787088db47 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 10 Feb 2021 13:50:10 +0100 Subject: [PATCH] Use sendTargetBacklog when re-attaching a channel No need to attempt to send backlog for all targets in the network. We're only interested in a single channel. --- user.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/user.go b/user.go index c17c3d2..031db9c 100644 --- a/user.go +++ b/user.go @@ -226,9 +226,7 @@ func (net *network) attach(ch *Channel) { forwardChannel(dc, uch) } - if _, ok := net.delivered[ch.Name]; ok { - dc.sendNetworkBacklog(net) - } + dc.sendTargetBacklog(net, ch.Name) }) }