That did nothing.

This commit is contained in:
Hendrik van Wyk
2017-09-16 13:15:31 +02:00
parent 0bd6b448b8
commit f89b619b23

View File

@@ -8,13 +8,11 @@ import (
"io"
"log"
"net"
"sync"
)
// Basic CLI to serve as example lib usage
func main() {
//Info = log.New()
wg := sync.WaitGroup{}
tcp := flag.Bool("tcp", false, "Use TCP instead of TTY")
ip := flag.String("ip", "localhost:8139", "IP to connect when using tcp connection.")
@@ -49,7 +47,6 @@ func main() {
panic(err)
}
c := mk2.C()
wg.Add(1)
for {
tmp := <-c
if tmp.Valid {
@@ -57,7 +54,6 @@ func main() {
}
}
log.Printf("Closing connection")
wg.Wait()
}
func PrintInfo(info *mk2if.Mk2Info) {