No more blocking on multiple Stop()

This commit is contained in:
Ethan Frey
2017-12-07 10:36:03 +01:00
parent 887d766c86
commit 8797197cdf
4 changed files with 28 additions and 20 deletions

View File

@ -73,6 +73,6 @@ func TestRepeat(test *testing.T) {
time.Sleep(delay(7))
assert.Equal(6, c.Count())
// close channel to stop counter
// extra calls to stop don't block
t.Stop()
}