mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 11:03:07 +08:00
Refactor traces of server session handling
This commit is contained in:
@@ -85,10 +85,10 @@ namespace MQTTnet.Core.Adapter
|
||||
|
||||
public async Task SendPacketsAsync(TimeSpan timeout, CancellationToken cancellationToken, IEnumerable<MqttBasePacket> packets)
|
||||
{
|
||||
await _semaphore.WaitAsync(cancellationToken);
|
||||
|
||||
try
|
||||
{
|
||||
await _semaphore.WaitAsync(cancellationToken);
|
||||
|
||||
foreach (var packet in packets)
|
||||
{
|
||||
if (packet == null)
|
||||
|
||||
Reference in New Issue
Block a user