werkin that tcp support

master
Jordan Orelli 12 years ago
parent e11bcf3d91
commit 84027bf70b

@ -50,7 +50,7 @@ func tcpInterpreter(conn net.Conn, userinput chan string, out chan interface{},
case v := <-out: case v := <-out:
fmt.Fprintln(manager, v) fmt.Fprintln(manager, v)
case err := <-errors: case err := <-errors:
fmt.Fprintf(conn, "error: %v", err) fmt.Fprintf(conn, "error: %v\n", err)
case line := <-userinput: case line := <-userinput:
if errorMode { if errorMode {
skipLine(line) skipLine(line)
@ -67,7 +67,6 @@ func tcpInterpreter(conn net.Conn, userinput chan string, out chan interface{},
} }
if err := addLine(line); err != nil { if err := addLine(line); err != nil {
fmt.Fprintf(conn, "error in addLine: %v", err)
errorMode = true errorMode = true
lines = lines[:0] lines = lines[:0]
currentDepth = 0 currentDepth = 0

Loading…
Cancel
Save