Skip to content

Commit

Permalink
Update src/impl/peerconnection.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Paul-Louis Ageneau <[email protected]>
  • Loading branch information
Sean-Der and paullouisageneau authored Jan 9, 2024
1 parent 2bb79f0 commit d2bcaa3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/impl/peerconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,8 @@ shared_ptr<DtlsTransport> PeerConnection::initDtlsTransport() {
PLOG_VERBOSE << "Starting DTLS transport";

auto fingerprintAlgorithm = CertificateFingerprint::Algorithm::Sha256;
if (auto remote = remoteDescription();
remote && remote->fingerprint().has_value()) {
fingerprintAlgorithm = remote->fingerprint().value().algorithm;
if (auto remote = remoteDescription(); remote && remote->fingerprint()) {
fingerprintAlgorithm = remote->fingerprint()->algorithm;
}

auto lower = std::atomic_load(&mIceTransport);
Expand Down

0 comments on commit d2bcaa3

Please sign in to comment.