Crash slightly more controlled under weird circumstances...

This commit is contained in:
Jakob Borg 2014-05-24 12:08:28 +02:00
parent 1a231d39a5
commit 8c4f07ef1b

View File

@ -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)