agnet: fixing inversion of LeaveOnInt

This commit is contained in:
Armon Dadgar
2015-09-21 13:54:01 -07:00
parent db27b85033
commit e769ef2bc6

View File

@@ -325,7 +325,7 @@ WAIT:
// Check if we should do a graceful leave
graceful := false
if sig == os.Interrupt && !config.LeaveOnInt {
if sig == os.Interrupt && config.LeaveOnInt {
graceful = true
} else if sig == syscall.SIGTERM && config.LeaveOnTerm {
graceful = true