aboutsummaryrefslogtreecommitdiffstats
path: root/les/execqueue_test.go
Commit message (Collapse)AuthorAgeFilesLines
* les: fix goroutine leak in execQueue (#14480)Felix Lange2017-05-171-0/+62
execQueue used an atomic counter to track whether the queue had been closed, but the checking the counter didn't happen because the queue was blocked on its channel. Fix it by using a condition variable instead of sync/atomic. I tried an implementation based on channels first, but it was hard to make it reliable. quit now waits for the queue loop to exit.