watch: Fixing bug with null keys

This commit is contained in:
Armon Dadgar 2014-08-21 17:24:20 -07:00
parent 0cd9faf3a2
commit 94615b0b7e
1 changed files with 2 additions and 1 deletions

View File

@ -80,8 +80,9 @@ OUTER:
}
// Update the index, look for change
oldIndex := p.lastIndex
p.lastIndex = index
if reflect.DeepEqual(p.lastResult, result) {
if oldIndex != 0 && reflect.DeepEqual(p.lastResult, result) {
continue
}