From 8c4f07ef1b2a9cd2fcd0dcd01113115065469449 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 24 May 2014 12:08:28 +0200 Subject: [PATCH] Crash slightly more controlled under weird circumstances... --- files/set.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/set.go b/files/set.go index 4b4c285f..646e9ae4 100644 --- a/files/set.go +++ b/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)