mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
Add more checks for NET5_0
This commit is contained in:
@@ -17,7 +17,7 @@ namespace MQTTnet.Implementations
|
||||
|
||||
public static void Sleep(TimeSpan timeout)
|
||||
{
|
||||
#if NET452 || NETSTANDARD2_0 || NETSTANDARD2_1 || NETCOREAPP3_1
|
||||
#if !NETSTANDARD1_3
|
||||
System.Threading.Thread.Sleep(timeout);
|
||||
#else
|
||||
Task.Delay(timeout).Wait();
|
||||
|
||||
Reference in New Issue
Block a user