htlcswitch/link_test: removes unnecessary WaitForShutdown

The new RemoveLink method blocks until the link has
been fully stopped, so we no longer need to wait
for it explicitly.
This commit is contained in:
Conner Fromknecht authored and Conner Fromknecht committed 2018-08-10 11:42:25 -07:00
1 parent b507d265b4
commit 11f02de3b3
1 file changed
-1
-1
View File
@@ -3709,7 +3709,6 @@ func (h *persistentLinkHarness) restart(restartSwitch bool,
// First, remove the link from the switch.
h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID())
h.coreLink.WaitForShutdown()
var htlcSwitch *Switch
if restartSwitch {