Browse Source

Fix UWP support broken in #1135

release/3.x.x
SilverFox 3 years ago
parent
commit
df262b5588
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs

+ 1
- 1
Source/MQTTnet/Implementations/PlatformAbstractionLayer.cs View File

@@ -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();


Loading…
Cancel
Save