diff options
| author | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-01 01:15:08 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-01 01:15:08 +0300 |
| commit | d9e07aff4a8160de7ce19ea536e69ed8f9a7a6d5 (patch) | |
| tree | 6ad11fe2752c2b3e928010818bfccde62c5be9a9 /Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs | |
| parent | 76a913a9d3e70f4379c3aaca7e6dd8e4da6aff13 (diff) | |
| download | Tango-d9e07aff4a8160de7ce19ea536e69ed8f9a7a6d5.tar.gz Tango-d9e07aff4a8160de7ce19ea536e69ed8f9a7a6d5.zip | |
IoT hub Destination Fix.
Diffstat (limited to 'Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs b/Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs index 61a4bd880..349655c54 100644 --- a/Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs +++ b/Software/Visual_Studio/Tango.Telemetry/Destinations/TelemetryAzureHubDestination.cs @@ -131,6 +131,11 @@ namespace Tango.Telemetry.Destinations { HubConnectionStatus = status; LogManager.Log($"IoT hub status changed to: {status}, Reason: {reason}.", LogCategory.Info); + + if (status == ConnectionStatus.Disabled || status == ConnectionStatus.Disconnected) + { + _hubClient = null; + } }); } |
