diff --git a/b2q.go b/b2q.go index 2a0c48b..2ddf170 100644 --- a/b2q.go +++ b/b2q.go @@ -317,6 +317,9 @@ func main() { for message := range comChannel { fmt.Printf("%v/%v %v \n", numjob, totaljobs, message) numjob++ + if numjob == totaljobs { + break + } } fmt.Println("\nPress Enter to exit") fmt.Scanln()