mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
simplify closeCh wait
This commit is contained in:
parent
7750c67e27
commit
9137dc1dcc
@ -90,7 +90,5 @@ func Serve(handler http.Handler) {
|
||||
}
|
||||
httpHandler = handler
|
||||
ready()
|
||||
select {
|
||||
case <-closeCh:
|
||||
}
|
||||
<-closeCh
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user