Fix bug causing repeating reboot RPC

This commit is contained in:
Zaid Abdulla committed 2016-11-10 15:12:22 -08:00
1 parent f9c5272ce0
commit 5cade39ba2
1 file changed
+1 -1
+1 -1
View File
@@ -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'