changeset 5470:5000f8e8a4f1

Merged.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 19 Jul 2021 17:59:37 +0200
parents 1a89084163d5 (diff) 1cf9b043dca1 (current diff)
children 1faca2dd45d2
files
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/mesh/raster.go	Mon Jul 19 17:12:19 2021 +0200
+++ b/pkg/mesh/raster.go	Mon Jul 19 17:59:37 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) {