Menu

#17 logging removed object of list

open
nobody
None
5
2007-01-28
2007-01-28
Anonymous
No

In the function
void P2PSocket::RememberRemoteCandidate()

uint32 i = 0;
while (i < remote_candidates_.size()) {
if (remote_candidates_[i].generation() < remote_candidate.generation()) {
remote_candidates_.erase(remote_candidates_.begin() + i);
LOG(INFO) << "Pruning candidate from old generation: "
<< remote_candidates_[i].address().ToString();

} else {
i += 1;
}
}

This Code does not log the correct candidate.
This can lead to further problems if the list remote_candidates_ does not contain more candidates.

FIX: Log before the element is removed

Discussion


Log in to post a comment.

Monday.com Logo