mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -387,7 +387,10 @@ namespace MQTTnet.Extensions.ManagedClient
|
||||
//removed it, in which case we don't want to do anything.
|
||||
_messageQueue.RemoveFirst(i => i.Id.Equals(message.Id));
|
||||
}
|
||||
_storageManager?.RemoveAsync(message).GetAwaiter().GetResult();
|
||||
if (_storageManager != null)
|
||||
{
|
||||
_storageManager.RemoveAsync(message).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
catch (MqttCommunicationException exception)
|
||||
{
|
||||
@@ -408,6 +411,10 @@ namespace MQTTnet.Extensions.ManagedClient
|
||||
{
|
||||
_messageQueue.RemoveFirst(i => i.Id.Equals(message.Id));
|
||||
}
|
||||
if (_storageManager != null)
|
||||
{
|
||||
_storageManager.RemoveAsync(message).GetAwaiter().GetResult();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
|
||||
Reference in New Issue
Block a user