UdpCmdDemux: Guard start() w/spinlock for races
This commit is contained in:
@@ -43,9 +43,10 @@ void UdpCommandDemuxer::start()
|
||||
|
||||
try
|
||||
{
|
||||
setupSockets();
|
||||
{
|
||||
smo::SpinLock::Guard lock(isActiveAndShouldStopLock);
|
||||
|
||||
setupSockets();
|
||||
isActive.store(true);
|
||||
shouldStop.store(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user