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:
parent
87488fc167
commit
7f514cb935
1 changed files with 11 additions and 1 deletions
|
@ -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(); });
|
||||
|
|
Loading…
Add table
Reference in a new issue