Fix bug causing repeating reboot RPC
This commit is contained in:
1 parent
f9c5272ce0
commit
5cade39ba2
1 file changed
+1
-1
+1
-1
@@ -797,7 +797,7 @@ generateSetRpcRequest = (sessionData) ->
|
|||||||
# Reboot
|
# Reboot
|
||||||
if syncState.reboot?
|
if syncState.reboot?
|
||||||
p = sessionData.deviceData.paths.subset(['Reboot']).next().value
|
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
|
delete syncState.reboot
|
||||||
return {
|
return {
|
||||||
type: 'Reboot'
|
type: 'Reboot'
|
||||||
|
|||||||
Reference in new issue
Block a user