Crash slightly more controlled under weird circumstances...
This commit is contained in:
@@ -210,6 +210,9 @@ func (m *Set) equals(id uint, fs []scanner.File) bool {
|
|||||||
|
|
||||||
func (m *Set) update(cid uint, fs []scanner.File) {
|
func (m *Set) update(cid uint, fs []scanner.File) {
|
||||||
remFiles := m.remoteKey[cid]
|
remFiles := m.remoteKey[cid]
|
||||||
|
if remFiles == nil {
|
||||||
|
l.Fatalln("update before replace for cid", cid)
|
||||||
|
}
|
||||||
for _, f := range fs {
|
for _, f := range fs {
|
||||||
n := f.Name
|
n := f.Name
|
||||||
fk := keyFor(f)
|
fk := keyFor(f)
|
||||||
|
|||||||
Reference in New Issue
Block a user