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

Unified Diff: remoting/protocol/webrtc_transport.cc

Issue 2847803003: Fix DCHECK in the chromoting host when disconnecting a WebRTC connection. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_transport.cc
diff --git a/remoting/protocol/webrtc_transport.cc b/remoting/protocol/webrtc_transport.cc
index fbacd2c418048397a49b83abb67c1c7f25da40c2..7fc239f23561f4466d4f8e11a0ad3a97c1c3b5ad 100644
--- a/remoting/protocol/webrtc_transport.cc
+++ b/remoting/protocol/webrtc_transport.cc
@@ -208,6 +208,9 @@ class WebrtcTransport::PeerConnectionWrapper
// See crbug.com/660081.
base::ThreadRestrictions::ScopedAllowIO allow_io;
peer_connection_->Close();
+ peer_connection_ = nullptr;
+ peer_connection_factory_ = nullptr;
+ audio_module_ = nullptr;
}
WebrtcAudioModule* audio_module() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698