Add more checks for NET5_0

This commit is contained in:
SilverFox
2021-04-02 18:03:44 +08:00
parent fbb5cd45a0
commit e174546b5a
7 changed files with 9 additions and 21 deletions
@@ -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();