| Index: remoting/protocol/jingle_session.cc
|
| diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
|
| index dc77271e587768205feb7d08d36e69ec41fd4f12..e1d6c66a821d848a28473af828cd8e75ecc76375 100644
|
| --- a/remoting/protocol/jingle_session.cc
|
| +++ b/remoting/protocol/jingle_session.cc
|
| @@ -143,10 +143,13 @@ JingleSession::OrderedMessageQueue::OnIncomingMessage(
|
| }
|
|
|
| // Ensure there are no duplicate sequence ids.
|
| - DCHECK_GE(current, next_incoming_);
|
| - DCHECK(queue_.find(current) == queue_.end());
|
| -
|
| - queue_.insert(std::make_pair(current, std::move(message)));
|
| + if (current < next_incoming_) {
|
| + LOG(WARNING) << "An unordered message will be dropped, expected= "
|
| + << next_incoming_ << " current= " << current;
|
| + } else {
|
| + DCHECK(queue_.find(current) == queue_.end());
|
| + queue_.insert(std::make_pair(current, std::move(message)));
|
| + }
|
|
|
| auto it = queue_.begin();
|
| while (it != queue_.end() && it->first == next_incoming_) {
|
|
|