diff --git a/client/alloc_runner.go b/client/alloc_runner.go index 1533aea92..307256585 100644 --- a/client/alloc_runner.go +++ b/client/alloc_runner.go @@ -201,8 +201,7 @@ func (r *AllocRunner) dirtySyncState() { // retrySyncState is used to retry the state sync until success func (r *AllocRunner) retrySyncState(stopCh chan struct{}) { for { - err := r.syncStatus() - if err == nil { + if err := r.syncStatus(); err == nil { // The Alloc State might have been re-computed so we are // snapshoting only the alloc runner r.SaveState(false)