fn: agent shutdown improvements (#622)

This commit is contained in:
Tolga Ceylan
2017-12-22 12:52:31 -08:00
committed by GitHub
parent 197d437668
commit feeeca3321
3 changed files with 10 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ import (
)
func (a *agent) asyncDequeue() {
a.wg.Add(1)
defer a.wg.Done() // we can treat this thread like one big task and get safe shutdown fo free
// this is just so we can hang up the dequeue request if we get shut down