From 783c7e1efe3763017186999e0fe410af63e1c322 Mon Sep 17 00:00:00 2001 From: imbeacon Date: Mon, 29 Apr 2024 12:38:24 +0300 Subject: [PATCH] Refactoring --- .../tb_utility/tb_gateway_remote_configurator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py index 48450d0f..2ba09f1d 100644 --- a/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py +++ b/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py @@ -505,7 +505,7 @@ class RemoteConfigurator: if connector_configuration.get('id') in self._gateway.available_connectors_by_id: try: close_start = monotonic() - while not self._gateway.available_connectors_by_id[connector_configuration['id']].stopped: + while not self._gateway.available_connectors_by_id[connector_configuration['id']].is_stopped(): self._gateway.available_connectors_by_id[connector_configuration['id']].close() if monotonic() - close_start > 5: LOG.error('Connector %s not stopped in 5 seconds', connector_configuration['id'])