mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
Fix several deadlocks
This commit is contained in:
@@ -19,6 +19,7 @@ namespace MQTTnet.TestApp.NetCore
|
||||
Console.WriteLine("2 = Start server");
|
||||
Console.WriteLine("3 = Start performance test");
|
||||
Console.WriteLine("4 = Start managed client");
|
||||
Console.WriteLine("5 = Start public broker test");
|
||||
|
||||
var pressedKey = Console.ReadKey(true);
|
||||
if (pressedKey.KeyChar == '1')
|
||||
@@ -37,6 +38,10 @@ namespace MQTTnet.TestApp.NetCore
|
||||
{
|
||||
Task.Run(ManagedClientTest.RunAsync);
|
||||
}
|
||||
else if (pressedKey.KeyChar == '5')
|
||||
{
|
||||
Task.Run(PublicBrokerTest.RunAsync);
|
||||
}
|
||||
|
||||
Thread.Sleep(Timeout.Infinite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user