@@ -53,6 +53,7 @@ func queue(op dOp) {
|
|||||||
type dOp interface{ Do() }
|
type dOp interface{ Do() }
|
||||||
|
|
||||||
func Exit(code int) {
|
func Exit(code int) {
|
||||||
|
Resume() // resume here to avoid deadlock
|
||||||
queueSync.Wait()
|
queueSync.Wait()
|
||||||
os.Exit(code)
|
os.Exit(code)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user