mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
Merge pull request #1136 from yyjdelete/framework
Fix UWP support broken in #1135
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user