htlcswitch/link_test: wait for link shutdown after removal

This commit is contained in:
Conner Fromknecht 2018-06-26 18:03:56 -07:00
parent 05d1d4e845
commit 23f2d93402
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -3710,6 +3710,7 @@ func (h *persistentLinkHarness) restart(restartSwitch bool,
// First, remove the link from the switch. // First, remove the link from the switch.
h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID()) h.coreLink.cfg.Switch.RemoveLink(h.link.ChanID())
h.coreLink.WaitForShutdown()
var htlcSwitch *Switch var htlcSwitch *Switch
if restartSwitch { if restartSwitch {