pr: force quit on second SIGINT/TERM

This commit is contained in:
Zero King
2018-04-10 07:11:49 +00:00
parent d10d1a5403
commit c4374e3fc3
+1
View File
@@ -56,6 +56,7 @@ sigLoop:
for sig := range sigChan {
switch sig {
case syscall.SIGINT, syscall.SIGTERM:
signal.Stop(sigChan)
receiver.Shutdown()
break sigLoop
}