DescriptionFix side-effect in DCHECK that breaks another DCHECK in JingleSession.
DCHECK(!channels_[name]) adds NULL channel with |name| into the
map, which was breaking DCHECK in JingleSession destructor. Replaced
with another DCHECK that doesn't have side-effects. Added unittest
to catch this problem.
Also removed no-op line from ~JingleSession().
Committed: https://crrev.com/8668e3f025c0acc5c77dfb54755835f5f91a5270
Cr-Commit-Position: refs/heads/master@{#296224}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|