1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

node-webrtc: initialize all members of PeerConnection

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-21 15:14:17 +02:00
parent 87488fc167
commit 7f514cb935

View file

@ -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<SignalingClient>(server, session, web);
client->onConnected([this](){ this->onSignalingConnected(); });