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

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

Issue 2623473004: Replace all use of the VERIFY macro. (Closed)
Patch Set: Delete a DCHECK, instead log and return failure. And fix compile error in previous patch set. Created 3 years, 10 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/dtlstransportchannel.cc
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc
index 575ec327b982dbe3c61e3f7a6e98e35a4f6e9a00..0359954a112ef07a2e812fd7e5bb05334e5ac59c 100644
--- a/webrtc/p2p/base/dtlstransportchannel.cc
+++ b/webrtc/p2p/base/dtlstransportchannel.cc
@@ -354,7 +354,8 @@ bool DtlsTransport::SetSrtpCryptoSuites(const std::vector<int>& ciphers) {
return true;
}
- if (!VERIFY(dtls_state() == DTLS_TRANSPORT_NEW)) {
+ if (dtls_state() != DTLS_TRANSPORT_NEW) {
+ LOG(LS_ERROR) << "Can't set SRTP ciphers for a closed session";
return false;
}
« no previous file with comments | « webrtc/p2p/base/candidate.h ('k') | webrtc/p2p/base/turnport.cc » ('j') | webrtc/pc/webrtcsdp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698