Anton Kaliaev 52ce4c20f8
Fix RepeatTimer memory leak (#137)
fix RepeatTimer memory leak (Refs #137)

* test case

* drain channels on reset

Leaking memory:
```
leaktest.go:144: leaktest: leaked goroutine: goroutine 116 [chan send]:
        github.com/tendermint/tmlibs/common.(*RepeatTimer).fireRoutine(0xc42006a410, 0xc4203403c0, 0xc42031b2c0)
                /go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:160 +0x6e
        created by github.com/tendermint/tmlibs/common.(*RepeatTimer).reset
                /go/src/github.com/tendermint/tmlibs/common/repeat_timer.go:196 +0xe9
```

The alternative solution could be draining channels on the client side.

* add one more select instead of draining

thanks to Jae
2018-02-09 13:31:32 +04:00
..
2018-01-02 11:05:53 -05:00
2018-01-02 11:05:53 -05:00
2017-09-20 02:49:51 -04:00
2017-11-04 00:10:59 -05:00
2017-06-20 17:18:55 -04:00
2017-06-20 17:18:55 -04:00
2017-12-09 09:26:03 -08:00
2017-12-10 14:23:27 -08:00
2017-11-29 12:18:03 -06:00
2017-07-19 15:02:04 -04:00
2017-07-19 15:02:04 -04:00
2017-10-25 11:01:52 +04:00
2017-11-04 08:14:47 -05:00
2017-12-21 10:02:25 -05:00
2017-11-27 23:42:36 -06:00
2017-11-29 05:16:15 +00:00