[WSClient] allow for multiple restarts
needed for 3044f66ba9
See https://github.com/tendermint/tools/issues/6
This commit is contained in:
parent
b54b9b4ecc
commit
d6587be7bc
|
@ -53,6 +53,9 @@ func (wsc *WSClient) OnStart() error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wsc.ResultsCh = make(chan json.RawMessage, wsResultsChannelCapacity)
|
||||||
|
wsc.ErrorsCh = make(chan error, wsErrorsChannelCapacity)
|
||||||
go wsc.receiveEventsRoutine()
|
go wsc.receiveEventsRoutine()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue