Handle panic in async event reporting

pull/6/head
Jordan Liggitt 2016-01-28 11:47:16 -05:00
parent 4e27ed67e4
commit 4ba6a2541b
1 changed files with 1 additions and 0 deletions

View File

@ -262,6 +262,7 @@ func (recorder *recorderImpl) generateEvent(object runtime.Object, timestamp unv
go func() {
// NOTE: events should be a non-blocking operation
defer util.HandleCrash()
recorder.Action(watch.Added, event)
}()
}