Skip to content

Commit

Permalink
Fixes an infinite loop in eventservice when the iterator needed to e …
Browse files Browse the repository at this point in the history
…invalidated due to concurrent insertion.
  • Loading branch information
balazsracz committed Aug 31, 2015
1 parent 5c9dfb3 commit c209cc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nmranet/EventService.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ StateFlowBase::Action EventIteratorFlow::iterate_next()
// Iterators are invalidated. We need to start over. This may cause
// duplicate delivery of the same events.
iterator_->clear_iteration();
eventRegistryEpoch_ = eventService_->impl()->registry->get_epoch();
iterator_->init_iteration(&eventReport_);
}

Expand Down

0 comments on commit c209cc5

Please sign in to comment.