Skip to content

Commit

Permalink
Eliminate infinite loop in the Manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
haohui committed May 30, 2016
1 parent 816fb57 commit 8a68c49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func (a *AbstractManager) startMainLoop(preLoop func() error, receive func(r Rep
if ok {
a.err = e
return
} else {
errors = nil
}
case r := <-a.rc:
if a.consume(r, receive) {
Expand Down

0 comments on commit 8a68c49

Please sign in to comment.