# HG changeset patch # User Sascha L. Teichmann # Date 1626710282 -7200 # Node ID 1a89084163d536bf2412b4a9bbcc4afd5e7fe85b # Parent df1b2c5ae541a494c5b996269e7106050deb588c Fixed data race in diff calculation by adding two forgotten waitgroup waits. diff -r df1b2c5ae541 -r 1a89084163d5 pkg/mesh/raster.go --- a/pkg/mesh/raster.go Mon Jul 19 16:17:08 2021 +0200 +++ b/pkg/mesh/raster.go Mon Jul 19 17:58:02 2021 +0200 @@ -114,6 +114,7 @@ rows <- i } close(rows) + wg.Wait() } func (r *Raster) Diff(eval func(float64, float64) (float64, bool)) { @@ -177,6 +178,7 @@ rows <- i } close(rows) + wg.Wait() } func (r *Raster) ZExtent() (float64, float64, bool) {