Browse Source

[WSClient] allow for multiple restarts

needed for 3044f66ba9
See https://github.com/tendermint/tools/issues/6
pull/456/head
Anton Kaliaev 8 years ago
parent
commit
d6587be7bc
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      client/ws_client.go

+ 3
- 0
client/ws_client.go View File

@ -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…
Cancel
Save