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

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

Issue 1311433009: A few updates on connection states (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Dropping changes on pruning and write_stale state. Created 5 years, 3 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
Index: webrtc/p2p/base/port.cc
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc
index d6bc27ba023bdf156dd8dd0aeca87f07a355a880..842a26e8260df55b740eed7527c13a22698a7309 100644
--- a/webrtc/p2p/base/port.cc
+++ b/webrtc/p2p/base/port.cc
@@ -1254,7 +1254,7 @@ void Connection::OnConnectionRequestSent(ConnectionRequest* request) {
void Connection::CheckTimeout() {
// If write has timed out and it is not receiving, remove the connection.
if (!receiving_ && write_state_ == STATE_WRITE_TIMEOUT) {
- port_->thread()->Post(this, MSG_DELETE);
+ Destroy();
}
}

Powered by Google App Engine
This is Rietveld 408576698