From 5cc799e02f77fbef11aa03aa1b19b72ff2d8935d Mon Sep 17 00:00:00 2001 From: Christopher Rabotin Date: Mon, 17 Apr 2017 00:33:35 -0600 Subject: [PATCH] How about this? --- cmd/designer/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/designer/main.go b/cmd/designer/main.go index 6699a8c..22eb9d9 100644 --- a/cmd/designer/main.go +++ b/cmd/designer/main.go @@ -160,9 +160,9 @@ func main() { // Fulfills the launch requirements. vInfIn := []float64{vInfInVec.At(0, 0), vInfInVec.At(1, 0), vInfInVec.At(2, 0)} prevResult := NewResult(launchDT, c3, len(planets)-1) + wg.Add(1) cpuChan <- true go GAPCP(arrivalDT, flybys[0], 0, vInfIn, prevResult) - wg.Add(1) } } log.Println("[info] All valid launches started")