Skip to content
Permalink
Browse files

pr: force quit on second SIGINT/TERM

  • Loading branch information
l2dy committed Apr 10, 2018
1 parent d10d1a5 commit c4374e3fc326285f6463b6793e2b1b74d1192ec4
Showing with 1 addition and 0 deletions.
  1. +1 −0 pr/prbot/main.go
@@ -56,6 +56,7 @@ sigLoop:
for sig := range sigChan {
switch sig {
case syscall.SIGINT, syscall.SIGTERM:
signal.Stop(sigChan)
receiver.Shutdown()
break sigLoop
}

0 comments on commit c4374e3

Please sign in to comment.
You can’t perform that action at this time.