Skip to content

Commit

Permalink
v.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolainp committed Oct 15, 2023
1 parent 3eca6ff commit 43c054e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion statecontext/innerState.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ func initState() *state {
obj.ctx, obj.cancel = context.WithCancel(context.Background())

signal.Notify(obj.signChan, os.Interrupt, syscall.SIGINT, syscall.SIGTERM)
go listenSignal()

return obj
}
Expand Down
1 change: 1 addition & 0 deletions statecontext/stateContext.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var innerState *state = nil
func InitState() {
once.Do(func() {
innerState = initState()
go listenSignal()
})
}

Expand Down

0 comments on commit 43c054e

Please sign in to comment.