Browse Source

Crash slightly more controlled under weird circumstances...

Jakob Borg 11 years ago
parent
commit
8c4f07ef1b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      files/set.go

+ 3 - 0
files/set.go

@@ -210,6 +210,9 @@ func (m *Set) equals(id uint, fs []scanner.File) bool {
 
 func (m *Set) update(cid uint, fs []scanner.File) {
 	remFiles := m.remoteKey[cid]
+	if remFiles == nil {
+		l.Fatalln("update before replace for cid", cid)
+	}
 	for _, f := range fs {
 		n := f.Name
 		fk := keyFor(f)