Merge pull request #76 from Random-Liu/fix-fake-execution-client-race
Fix a race that fake execution client sends event to closed channel.
This commit is contained in:
commit
0e2db7e99a
@ -89,6 +89,7 @@ func (f *FakeExecutionClient) Stop() {
|
||||
for _, client := range f.eventClients {
|
||||
close(client.Events)
|
||||
}
|
||||
f.eventClients = nil
|
||||
}
|
||||
|
||||
// WithEvents setup events publisher for FakeExecutionClient
|
||||
|
Loading…
Reference in New Issue
Block a user