Fix non-const lvalue reference

This commit is contained in:
David Rowe 2021-10-29 23:04:41 +13:00
parent bb3d0fa5fa
commit 8e3cfe9805

View file

@ -489,7 +489,8 @@ void WebRTCDataChannels::onSignalingMessage(const QJsonObject& message) {
// Add a remote ICE candidate.
if (data.contains("candidate")) {
connection->addIceCandidate(data.value("candidate").toObject());
auto candidate = data.value("candidate").toObject();
connection->addIceCandidate(candidate);
}
}