mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
Move forceCnt into the goroutine
From PR Review https://github.com/safing/portbase/pull/56
This commit is contained in:
parent
f4fcd0c67c
commit
5f2c861e2d
1 changed files with 1 additions and 1 deletions
|
@ -74,9 +74,9 @@ signalLoop:
|
|||
fmt.Println(" <INTERRUPT>")
|
||||
log.Warning("main: program was interrupted, shutting down.")
|
||||
|
||||
forceCnt := 5
|
||||
// catch signals during shutdown
|
||||
go func() {
|
||||
forceCnt := 5
|
||||
for {
|
||||
<-signalCh
|
||||
forceCnt--
|
||||
|
|
Loading…
Add table
Reference in a new issue