This commit is contained in:
Shivaram Lingamneni 2020-06-22 14:54:43 -04:00
parent 4cadb7ad58
commit a4f9e08a85
11 changed files with 45 additions and 6 deletions

View file

@ -75,6 +75,9 @@ func (socket *Socket) Read() (string, error) {
if err == io.EOF && strings.TrimSpace(line) != "" {
// don't do anything
} else if err == errInvalidUtf8 {
// pass the data through so we can parse the command at least
return line, err
} else if err != nil {
return "", err
}