From 7f514cb9350224092d781dfb495edfa1842d723d Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Wed, 21 Jun 2023 15:14:17 +0200 Subject: [PATCH] node-webrtc: initialize all members of PeerConnection Signed-off-by: Philipp Jungkamp --- lib/nodes/webrtc/peer_connection.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/nodes/webrtc/peer_connection.cpp b/lib/nodes/webrtc/peer_connection.cpp index 1c91ce955..cd9293ef7 100644 --- a/lib/nodes/webrtc/peer_connection.cpp +++ b/lib/nodes/webrtc/peer_connection.cpp @@ -41,9 +41,19 @@ namespace rtc { PeerConnection::PeerConnection(const std::string &server, const std::string &session, rtc::Configuration cfg, Web *w, rtc::DataChannelInit d) : web(w), + extraServers({}), dataChannelInit(d), defaultConfig(cfg), - logger(logging.get("webrtc:pc")) + conn(nullptr), + chan(nullptr), + logger(logging.get("webrtc:pc")), + stopStartup(false), + warnNotConnected(false), + standby(true), + first(false), + firstID(INT_MAX), + secondID(INT_MAX), + onMessageCallback(nullptr) { client = std::make_shared(server, session, web); client->onConnected([this](){ this->onSignalingConnected(); });