Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: webrtc/p2p/base/port.cc

Issue 2090073003: Reland of Do not delete a connection in the turn port with permission error or refresh error. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/base/port.h ('k') | webrtc/p2p/base/turnport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/base/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index 6e26371daedd93620cfee32f7d58cc6fd68dbb47..d4dfd91ecaa56ebc176ba215b9d2b2ef7664f691 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -1088,6 +1088,11 @@
void Connection::FailAndDestroy() {
set_state(Connection::STATE_FAILED);
Destroy();
+}
+
+void Connection::FailAndPrune() {
+ set_state(Connection::STATE_FAILED);
+ Prune();
}
void Connection::PrintPingsSinceLastResponse(std::string* s, size_t max) {
« no previous file with comments | « webrtc/p2p/base/port.h ('k') | webrtc/p2p/base/turnport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698