From 7e6eebc486e5acc1818f4a10deba50acb1795d65 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 19 Jul 2017 12:38:40 -0700 Subject: [PATCH] Avoid deleting Downloads tree after root GPN --- lib/session.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.coffee b/lib/session.coffee index 64b799e..3806b47 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -1439,7 +1439,7 @@ rpcResponse = (sessionContext, id, rpcRes, callback) -> return callback(err) if err if root.length == 0 - for n in ['DeviceID', 'Events', 'Tags', 'Reboot', 'FactoryReset', 'VirtualParameters'] + for n in ['DeviceID', 'Events', 'Tags', 'Reboot', 'FactoryReset', 'VirtualParameters', 'Downloads'] if p = sessionContext.deviceData.paths.get([n]) if sessionContext.deviceData.attributes.has(p) sessionContext.deviceData.timestamps.set(p, timestamp)