We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b18361 + 5c637b7 commit 92a240fCopy full SHA for 92a240f
daemon/daemon.go
@@ -1498,7 +1498,9 @@ func (daemon *Daemon) Shutdown(ctx context.Context) error {
1498
// running anymore. If there are still some open connections to the
1499
// '/events' endpoint, closing the EventsService should tear them down
1500
// immediately.
1501
- daemon.EventsService.Close()
+ if daemon.EventsService != nil {
1502
+ daemon.EventsService.Close()
1503
+ }
1504
1505
return daemon.cleanupMounts(cfg)
1506
}
0 commit comments