From 844d69d16585f2fb73a0df0e42d8c36ac1bb44a6 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 11 Sep 2024 17:17:42 -0400 Subject: [PATCH] Windows fix for disabling MT properly. --- service/OneService.cpp | 4 ++++ windows/ZeroTierOne/ZeroTierOne.vcxproj.filters | 3 +++ 2 files changed, 7 insertions(+) diff --git a/service/OneService.cpp b/service/OneService.cpp index 298b2b26ee..d9f63334ce 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -2617,6 +2617,10 @@ class OneServiceImpl : public OneService _concurrency = 1; _cpuPinningEnabled = false; } +#else + _multicoreEnabled = false; + _concurrency = 1; + _cpuPinningEnabled = false; #endif #ifndef ZT_SDK diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters index de9c97fec3..1b1bb507a9 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj.filters @@ -294,6 +294,9 @@ Source Files\node + + Source Files\node +