From 45773f0b6e393b405c0f8bec2be78a7e7f1a5404 Mon Sep 17 00:00:00 2001 From: Chris Spiegel Date: Mon, 3 Nov 2025 10:19:10 -0800 Subject: [PATCH] Ensure members in PacketMultiplexer are initialized _enabled is set to true by setUpPostDecodeReceiveThreads(), so disabled until then, but the constructor wasn't initializing it. _concurrency is not being used before being set but for safety's sake, ensure it has a starting value as well. Also, remove the vestigial _rxThreadCount, which is no longer used. --- node/PacketMultiplexer.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/node/PacketMultiplexer.hpp b/node/PacketMultiplexer.hpp index cd8093fe6..4d70d82f0 100644 --- a/node/PacketMultiplexer.hpp +++ b/node/PacketMultiplexer.hpp @@ -44,15 +44,14 @@ class PacketMultiplexer { std::vector*> _rxPacketQueues; - unsigned int _concurrency; + unsigned int _concurrency = 0; // pool std::vector _rxPacketVector; std::vector _rxPacketThreads; Mutex _rxPacketVector_m, _rxPacketThreads_m; std::vector _rxThreads; - unsigned int _rxThreadCount; - bool _enabled; + bool _enabled = false; }; } // namespace ZeroTier