fix: controller error handle function

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-09-20 20:58:19 +08:00
parent f85f6b6b58
commit a4281989c3
4 changed files with 5 additions and 4 deletions

View File

@@ -242,7 +242,7 @@ func (v *ApplicationController) enqueueObject(obj interface{}) {
}
func (v *ApplicationController) handleErr(err error, key interface{}) {
if err != nil {
if err == nil {
v.queue.Forget(key)
return
}