mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-26 16:24:10 +08:00
Remove not used timeout for receiving.
This commit is contained in:
@@ -169,6 +169,7 @@ namespace MQTTnet.Tests.Mockups
|
||||
{
|
||||
foreach (var mqttClient in _clients)
|
||||
{
|
||||
mqttClient.DisconnectAsync().GetAwaiter().GetResult();
|
||||
mqttClient?.Dispose();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace MQTTnet.Tests.Mockups
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
public Task<MqttBasePacket> ReceivePacketAsync(TimeSpan timeout, CancellationToken cancellationToken)
|
||||
public Task<MqttBasePacket> ReceivePacketAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
ThrowIfPartnerIsNull();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user