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: move peer member initialization to initializer list

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-30 14:06:48 +02:00
parent 352c5996db
commit 82bf4df50c

View file

@ -27,6 +27,7 @@ static villas::node::Web *web;
WebRTCNode::WebRTCNode(const uuid_t &id, const std::string &name) :
Node(id, name),
server("https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling"),
peer(uuid::toString(id)),
wait_seconds(0),
format(nullptr),
queue({}),
@ -34,9 +35,6 @@ WebRTCNode::WebRTCNode(const uuid_t &id, const std::string &name) :
dci({})
{
dci.reliability.type = rtc::Reliability::Type::Rexmit;
// Initialize signaling peer with node UUID
peer = uuid::toString(id);
}
WebRTCNode::~WebRTCNode()