-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
diff --git a/p2p/base/port.cc b/p2p/base/port.cc | ||
index 25105dcdb0..cb7d60b629 100644 | ||
--- a/p2p/base/port.cc | ||
+++ b/p2p/base/port.cc | ||
@@ -673,7 +673,8 @@ bool Port::MaybeIceRoleConflict(const rtc::SocketAddress& addr, | ||
} | ||
break; | ||
default: | ||
- RTC_DCHECK_NOTREACHED(); | ||
+ // RTC_DCHECK_NOTREACHED(); | ||
+ break; | ||
} | ||
return ret; | ||
} | ||
diff --git a/pc/webrtc_session_description_factory.cc b/pc/webrtc_session_description_factory.cc | ||
index 9919260aa3..f8849f2cd0 100644 | ||
--- a/pc/webrtc_session_description_factory.cc | ||
+++ b/pc/webrtc_session_description_factory.cc | ||
@@ -179,8 +179,9 @@ WebRtcSessionDescriptionFactory::~WebRtcSessionDescriptionFactory() { | ||
// will be cancelled. If we don't protect them, they might trigger after peer | ||
// connection is destroyed, which might be surprising. | ||
while (!callbacks_.empty()) { | ||
- std::move(callbacks_.front())(); | ||
+ auto f = std::move(callbacks_.front()); | ||
callbacks_.pop(); | ||
+ std::move(f)(); | ||
} | ||
} | ||
|
||
@@ -414,8 +415,9 @@ void WebRtcSessionDescriptionFactory::Post( | ||
// Callbacks are pushed from the same thread, thus this task should | ||
// corresond to the first entry in the queue. | ||
RTC_DCHECK(!callbacks.empty()); | ||
- std::move(callbacks.front())(); | ||
+ auto f = std::move(callbacks.front()); | ||
callbacks.pop(); | ||
+ std::move(f)(); | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters