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; |
} |