Skip to content

Commit

Permalink
daemon: remove listener closing race (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
flotter authored Aug 1, 2023
1 parent bf8a4d4 commit e214581
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions internals/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,17 +567,8 @@ func (d *Daemon) Stop(sigCh chan<- os.Signal) error {
restartSocket := d.restartSocket
d.mu.Unlock()

d.generalListener.Close()
d.standbyOpinions.Stop()

if d.untrustedListener != nil {
d.untrustedListener.Close()
}

if d.httpListener != nil {
d.httpListener.Close()
}

if restartSystem {
// give time to polling clients to notice restart
time.Sleep(rebootNoticeWait)
Expand Down

0 comments on commit e214581

Please sign in to comment.