mirror of
https://github.com/macports/mpbot-github.git
synced 2026-07-13 03:18:39 -07:00
pr: force quit on second SIGINT/TERM
This commit is contained in:
@@ -56,6 +56,7 @@ sigLoop:
|
||||
for sig := range sigChan {
|
||||
switch sig {
|
||||
case syscall.SIGINT, syscall.SIGTERM:
|
||||
signal.Stop(sigChan)
|
||||
receiver.Shutdown()
|
||||
break sigLoop
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user