ui: Refactoring

This commit is contained in:
Hajime Hoshi 2016-02-21 18:01:43 +09:00
parent 60a504543f
commit bae6d62067

View File

@ -75,10 +75,8 @@ var (
func Loop() { func Loop() {
<-workerCreated <-workerCreated
for { for {
select { <-worker.WorkAvailable()
case <-worker.WorkAvailable(): worker.DoWork()
worker.DoWork()
}
} }
} }