From df262b5588bdaf6d2f7f4ddaabf0ab095fc75a8e Mon Sep 17 00:00:00 2001 From: SilverFox Date: Fri, 2 Apr 2021 19:57:14 +0800 Subject: [PATCH] Fix UWP support broken in #1135 --- Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs b/Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs index b2692589..49b9bfb2 100644 --- a/Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs +++ b/Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs @@ -17,7 +17,7 @@ namespace MQTTnet.Implementations public static void Sleep(TimeSpan timeout) { -#if !NETSTANDARD1_3 +#if !NETSTANDARD1_3 && !WINDOWS_UWP System.Threading.Thread.Sleep(timeout); #else Task.Delay(timeout).Wait();