mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
[common] revert started flag when service already stopped (#2326)
also, return ErrNotStarted when trying to stop a not-running service
This commit is contained in:
committed by
Ethan Buchman
parent
1ea64fc27f
commit
e3e3c13741
@ -174,9 +174,6 @@ func (c *WSClient) OnStart() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// OnStop implements cmn.Service.
|
||||
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 {
|
||||
|
Reference in New Issue
Block a user