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