htlcswitch: sync mock server shutdown of switch

This commit is contained in:
Conner Fromknecht 2017-08-08 16:50:05 -07:00 committed by Olaoluwa Osuntokun
parent 13b78fea1f
commit 8930b4e481

@ -330,7 +330,7 @@ func (s *mockServer) Stop() {
return
}
go s.htlcSwitch.Stop()
s.htlcSwitch.Stop()
close(s.quit)
s.wg.Wait()