mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Perform a nil-check for Executor's consulServices.
Executors can `Shutdown()` before calling `SyncServices()`.
This commit is contained in:
@@ -425,7 +425,9 @@ func (e *UniversalExecutor) Exit() error {
|
||||
e.lre.Close()
|
||||
e.lro.Close()
|
||||
|
||||
e.consulSyncer.Shutdown()
|
||||
if e.consulSyncer != nil {
|
||||
e.consulSyncer.Shutdown()
|
||||
}
|
||||
|
||||
// If the executor did not launch a process, return.
|
||||
if e.command == nil {
|
||||
|
||||
Reference in New Issue
Block a user