mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Fix UWP support broken in #1135
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MQTTnet.Implementations
|
|||||||
|
|
||||||
public static void Sleep(TimeSpan timeout)
|
public static void Sleep(TimeSpan timeout)
|
||||||
{
|
{
|
||||||
#if !NETSTANDARD1_3
|
#if !NETSTANDARD1_3 && !WINDOWS_UWP
|
||||||
System.Threading.Thread.Sleep(timeout);
|
System.Threading.Thread.Sleep(timeout);
|
||||||
#else
|
#else
|
||||||
Task.Delay(timeout).Wait();
|
Task.Delay(timeout).Wait();
|
||||||
|
|||||||
Reference in New Issue
Block a user