don't set cache to nil after flushing
parent
83405d2e4b
commit
c3a7be1ab2
|
@ -45,11 +45,9 @@ func (c *DiffCache) Close() {
|
||||||
func (c *DiffCache) Flush() {
|
func (c *DiffCache) Flush() {
|
||||||
if c.Coords != nil {
|
if c.Coords != nil {
|
||||||
c.Coords.Flush()
|
c.Coords.Flush()
|
||||||
c.Coords = nil
|
|
||||||
}
|
}
|
||||||
if c.Ways != nil {
|
if c.Ways != nil {
|
||||||
c.Ways.Flush()
|
c.Ways.Flush()
|
||||||
c.Ways = nil
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue