don't set cache to nil after flushing

master
Oliver Tonnhofer 2013-11-19 15:47:33 +01:00
parent 83405d2e4b
commit c3a7be1ab2
1 changed files with 0 additions and 2 deletions

2
cache/diff.go vendored
View File

@ -45,11 +45,9 @@ func (c *DiffCache) Close() {
func (c *DiffCache) Flush() {
if c.Coords != nil {
c.Coords.Flush()
c.Coords = nil
}
if c.Ways != nil {
c.Ways.Flush()
c.Ways = nil
}
}