mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 18:43:10 +08:00
Merge branch 'develop' of https://github.com/chkr1011/MQTTnet into develop
This commit is contained in:
@@ -306,15 +306,15 @@ namespace MQTTnet.Extensions.ManagedClient
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (subscriptions.Any())
|
|
||||||
{
|
|
||||||
await _mqttClient.SubscribeAsync(subscriptions).ConfigureAwait(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (unsubscriptions.Any())
|
if (unsubscriptions.Any())
|
||||||
{
|
{
|
||||||
await _mqttClient.UnsubscribeAsync(unsubscriptions).ConfigureAwait(false);
|
await _mqttClient.UnsubscribeAsync(unsubscriptions).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (subscriptions.Any())
|
||||||
|
{
|
||||||
|
await _mqttClient.SubscribeAsync(subscriptions).ConfigureAwait(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user