htlcswitch: sync mock server shutdown of switch
This commit is contained in:
parent
13b78fea1f
commit
8930b4e481
@ -330,7 +330,7 @@ func (s *mockServer) Stop() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
go s.htlcSwitch.Stop()
|
s.htlcSwitch.Stop()
|
||||||
|
|
||||||
close(s.quit)
|
close(s.quit)
|
||||||
s.wg.Wait()
|
s.wg.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user