Skip to content

Commit

Permalink
do not stop sessions and handlers on appDieChan
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed Jul 4, 2018
1 parent bd4f950 commit 4dd9a22
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,6 @@ func (a *Agent) Handle() {
select {
case <-a.chDie: // agent closed signal
return
case <-a.appDieChan: // application quit
return
}
}

Expand Down
3 changes: 0 additions & 3 deletions service/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ func (h *HandlerService) Dispatch(thread int) {

case id := <-timer.Manager.ChClosingTimer: // closing Timers
timer.RemoveTimer(id)

case <-h.appDieChan: // application quit signal
return
}
}
}
Expand Down

0 comments on commit 4dd9a22

Please sign in to comment.