mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
determinisitic linter (#902)
* linter: address gosimple lints * linter: make deterministic & a rebase fix * lint/rpc: fix a gosimple lint * run linter in CI * fix rebase mistake * fix makefile * ugh * revert Makefile * add metalinter to CI * try this * linter: last little fix * need glide * better * okayy circle, have it your way * lints: gosimple * pr comments
This commit is contained in:
@ -169,13 +169,14 @@ func (c *WSClient) OnStop() {}
|
||||
// Stop overrides cmn.Service#Stop. There is no other way to wait until Quit
|
||||
// channel is closed.
|
||||
func (c *WSClient) Stop() error {
|
||||
err := c.BaseService.Stop()
|
||||
if err == nil {
|
||||
// only close user-facing channels when we can't write to them
|
||||
c.wg.Wait()
|
||||
close(c.ResponsesCh)
|
||||
if err := c.BaseService.Stop(); err != nil {
|
||||
return err
|
||||
}
|
||||
return err
|
||||
// only close user-facing channels when we can't write to them
|
||||
c.wg.Wait()
|
||||
close(c.ResponsesCh)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// IsReconnecting returns true if the client is reconnecting right now.
|
||||
|
Reference in New Issue
Block a user