allocrunner: Close updates routine correctly

This commit is contained in:
Danielle Tomlinson
2018-12-19 18:32:51 +01:00
parent 0b12ef11a2
commit b63095db60

View File

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