Fix bug in testing preconditions and events
The bug occurs when the session was serialized and deserialized as a result of requests coming through a new TCP connection. Resolves: #219
This commit is contained in:
1 parent
720dbd05d2
commit
84e79bda9e
1 file changed
+3
@@ -237,6 +237,9 @@ applyPresets = (sessionContext) ->
|
||||
|
||||
blackList[channel] = if fault.precondition then 1 else 2
|
||||
|
||||
sessionContext.deviceData.timestamps.revision = 1
|
||||
sessionContext.deviceData.attributes.revision = 1
|
||||
|
||||
deviceEvents = {}
|
||||
for p in sessionContext.deviceData.paths.find(['Events', '*'], false, true)
|
||||
if sessionContext.timestamp <= sessionContext.deviceData.attributes.get(p)?.value?[1][0]
|
||||
|
||||
Reference in new issue
Block a user