UdpCmdDemux: Guard start() w/spinlock for races

This commit is contained in:
2025-11-07 21:12:40 -04:00
parent e0c0976e0b
commit 7b092956c0
+2 -1
View File
@@ -43,9 +43,10 @@ void UdpCommandDemuxer::start()
try try
{ {
setupSockets();
{ {
smo::SpinLock::Guard lock(isActiveAndShouldStopLock); smo::SpinLock::Guard lock(isActiveAndShouldStopLock);
setupSockets();
isActive.store(true); isActive.store(true);
shouldStop.store(false); shouldStop.store(false);
} }