reset the watch index when somehow the index goes backwards

This commit is contained in:
Harmen 2017-01-17 09:02:53 +01:00
parent 021cc2017d
commit d7b5f41447
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ OUTER:
if oldIndex != 0 && reflect.DeepEqual(p.lastResult, result) {
continue
}
if p.lastIndex < oldIndex {
p.lastIndex = 0
}
// Handle the updated result
p.lastResult = result