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:
Lantao Liu 2017-06-14 14:02:00 -07:00 committed by GitHub
commit 0e2db7e99a

View File

@ -89,6 +89,7 @@ func (f *FakeExecutionClient) Stop() {
for _, client := range f.eventClients { for _, client := range f.eventClients {
close(client.Events) close(client.Events)
} }
f.eventClients = nil
} }
// WithEvents setup events publisher for FakeExecutionClient // WithEvents setup events publisher for FakeExecutionClient