From 075fa737af08568f59ee6d945501523d170d81ef Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 2 Jul 2019 17:14:47 -0400 Subject: [PATCH] Add cmd.Wait() to Keybase.Run() --- chatIn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/chatIn.go b/chatIn.go index b8996d7..ab57f4b 100644 --- a/chatIn.go +++ b/chatIn.go @@ -156,6 +156,7 @@ func getNewMessages(k Keybase, c chan<- ChatIn, execOptions []string) { keybaseListen := exec.Command(k.Path, execCommand...) keybaseOutput, _ := keybaseListen.StdoutPipe() keybaseListen.Start() + keybaseListen.Wait() scanner := bufio.NewScanner(keybaseOutput) var jsonData ChatIn