~kris/9p

disco

ff90b1ac381a970bae32a65a58af0f4f79c37c13 — henesy 6 years ago c252ac2 master
break on all errors in line read loop ;; seems to resolve #15
1 files changed, 5 insertions(+), 2 deletions(-)

M main.go
M main.go => main.go +5 -2
@@ 7,8 7,8 @@ import (
	"flag"
	"fmt"
	"github.com/henesy/disco/DiscordState"
	"io"
	"log"
	"io"
	"os"
	"regexp"
	"strings"


@@ 83,7 83,10 @@ func main() {
		//line, _ := rl.Readline()
		line, err := reader.ReadString('\n')

		if err == io.EOF {
		if err != nil {
			if err != io.EOF {
				fmt.Println("Line read error:", err)
			}
			break
		}