Quit method was added to Service/BaseService

Refs https://github.com/tendermint/tendermint/issues/1205
This commit is contained in:
Anton Kaliaev
2018-02-12 12:22:32 +04:00
parent 5a4f56056e
commit 5913ae8960
3 changed files with 13 additions and 13 deletions

View File

@ -135,7 +135,7 @@ func (cli *socketClient) sendRequestsRoutine(conn net.Conn) {
default:
// Probably will fill the buffer, or retry later.
}
case <-cli.BaseService.Quit:
case <-cli.Quit():
return
case reqres := <-cli.reqQueue:
cli.willSendReq(reqres)