Merge pull request #5027 from hashicorp/dani/b-allocrunner-routine

allocrunner: Close updates routine correctly
This commit is contained in:
Danielle Tomlinson 2018-12-19 18:40:16 +01:00 committed by GitHub
commit 713cf8ddb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -652,7 +652,7 @@ func (ar *allocRunner) handleAllocUpdates() {
case update := <-ar.allocUpdatedCh:
ar.handleAllocUpdate(update)
case <-ar.waitCh:
break
return
}
}
}