Skip to content

Commit

Permalink
Merge pull request #11 from findcoo/dev-0
Browse files Browse the repository at this point in the history
AtCancel at received sigterm
  • Loading branch information
findcoo authored Aug 22, 2017
2 parents a544c64 + ce9d5e6 commit 7bb8123
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (o *Observer) Watch(target func()) {
select {
case state := <-sig:
log.Printf("capture signal: %s: end observ", state)
o.Handler.AtCancel()
o.endSubscribe()
return
case <-o.doneObserv:
Expand Down

0 comments on commit 7bb8123

Please sign in to comment.