Skip to content

Commit

Permalink
check controller on kill (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 authored Aug 19, 2024
1 parent 957b7e3 commit 0533b5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,8 @@ func (h *Handler) Run() {

func (h *Handler) Kill() {
<-h.initialized.Watch()
if h.controller == nil {
return
}
h.controller.SendEOS(context.Background(), "handler killed")
}

0 comments on commit 0533b5d

Please sign in to comment.