From 5cade39ba289d6ad102e559c24b91988e4804292 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Thu, 10 Nov 2016 15:12:22 -0800 Subject: [PATCH] Fix bug causing repeating reboot RPC --- lib/session.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/session.coffee b/lib/session.coffee index dfdc674..6f627c8 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -797,7 +797,7 @@ generateSetRpcRequest = (sessionData) -> # Reboot if syncState.reboot? p = sessionData.deviceData.paths.subset(['Reboot']).next().value - if not (p? and sessionData.deviceData.attributes.get(p)?.value?[1[0]] >= syncState.reboot) + if not (p? and sessionData.deviceData.attributes.get(p)?.value?[1][0] >= syncState.reboot) delete syncState.reboot return { type: 'Reboot'