From 27e00196cd505d13496613282a68473671a6c3fd Mon Sep 17 00:00:00 2001 From: Tim Beatham Date: Tue, 2 Jan 2024 20:31:24 +0000 Subject: [PATCH] main - Not waiting in the waitgroup --- pkg/sync/syncer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/sync/syncer.go b/pkg/sync/syncer.go index 472dfb7..359abc7 100644 --- a/pkg/sync/syncer.go +++ b/pkg/sync/syncer.go @@ -191,6 +191,7 @@ func (s *SyncerImpl) SyncMeshes() error { go sync() } + wg.Wait() logging.Log.WriteInfof("updating the WireGuard configuration") err := s.manager.ApplyConfig()