Commit eeb1680e authored by watermelon's avatar watermelon

fix: fix task_pool AddTaskAlways

parent 0cdef164
......@@ -267,6 +267,12 @@ func (p *taskPoolSimple) AddTask(t task) bool {
func (p *taskPoolSimple) AddTaskAlways(t task) {
select {
case <-p.done:
return
default:
}
select {
case p.work <- t:
return
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment