mirror of
https://github.com/thingsboard/thingsboard-gateway
synced 2025-10-26 22:31:42 +08:00
Bug correction in MQTT device disconnect
Device disconnect didn't remove devices from the saved devices list => connections did not work after a disconnection Signed-off-by: Simone Libutti <simone.libutti@gmail.com>
This commit is contained in:
@@ -528,6 +528,7 @@ class TBGatewayService:
|
||||
|
||||
def del_device(self, device_name):
|
||||
del self.__connected_devices[device_name]
|
||||
del self.__saved_devices[device_name]
|
||||
self.tb_client.client.gw_disconnect_device(device_name)
|
||||
self.__save_persistent_devices()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user