htlcswitch: sync mock server shutdown of switch

This commit is contained in:
Conner Fromknecht authored and Olaoluwa Osuntokun committed 2017-08-10 16:14:01 -07:00
1 parent 13b78fea1f
commit 8930b4e481
1 file changed
+1 -1
+1 -1
View File
@@ -330,7 +330,7 @@ func (s *mockServer) Stop() {
return
}
go s.htlcSwitch.Stop()
s.htlcSwitch.Stop()
close(s.quit)
s.wg.Wait()