mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 02:53:06 +08:00
Additional performance improvements
This commit is contained in:
@@ -54,8 +54,8 @@ namespace MQTTnet.Core.Server
|
||||
_messageQueue.Start(adapter);
|
||||
while (!_cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
var packet = await adapter.ReceivePacketAsync(TimeSpan.Zero);
|
||||
await HandleIncomingPacketAsync(packet);
|
||||
var packet = await adapter.ReceivePacketAsync(TimeSpan.Zero).ConfigureAwait(false);
|
||||
await HandleIncomingPacketAsync(packet).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch (MqttCommunicationException)
|
||||
|
||||
Reference in New Issue
Block a user