Skip to content

Commit

Permalink
Merge pull request #74 from Random-Liu/fix-event-handler
Browse files Browse the repository at this point in the history
Add the missing loop in event handler.
  • Loading branch information
Random-Liu committed Jun 13, 2017
2 parents 479e8c3 + 87ec0f8 commit b83270d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/server/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ func (c *criContainerdService) startEventMonitor() {
b.Reset()
// TODO(random-liu): Relist to recover state, should prevent other operations
// until state is fully recovered.
if err := c.handleEventStream(events); err != nil {
glog.Errorf("Failed to handle event stream: %v", err)
time.Sleep(b.Duration())
continue
for {
if err := c.handleEventStream(events); err != nil {
glog.Errorf("Failed to handle event stream: %v", err)
break
}
}
}
}()
Expand Down

0 comments on commit b83270d

Please sign in to comment.