Remove timeout from send method.

This commit is contained in:
Christian
2020-12-14 21:17:11 +01:00
parent f92cfcd293
commit 1f78a92c4d
18 changed files with 83 additions and 83 deletions
@@ -167,7 +167,7 @@ namespace MQTTnet.AspNetCore
BytesSent = 0;
}
public async Task SendPacketAsync(MqttBasePacket packet, TimeSpan timeout, CancellationToken cancellationToken)
public async Task SendPacketAsync(MqttBasePacket packet, CancellationToken cancellationToken)
{
var formatter = PacketFormatterAdapter;
using (await _writerLock.WaitAsync(cancellationToken).ConfigureAwait(false))
@@ -180,6 +180,7 @@ namespace MQTTnet.AspNetCore
{
BytesSent += msg.Length;
}
PacketFormatterAdapter.FreeBuffer();
}
}