Skip to content

Commit

Permalink
Add waitgroup wait to keep plugin running until goroutine is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean-Coakley committed Sep 19, 2022
1 parent 9fe1f95 commit d57a75c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/process_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func (pw *ProcessWatcher) Info() *core.Info {

func (pw *ProcessWatcher) Close() {
log.Info("ProcessWatcher is wrapping up")
pw.wg.Wait()
}

func (pw *ProcessWatcher) Process(message *core.Message) {}
Expand Down

0 comments on commit d57a75c

Please sign in to comment.