mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-21 23:08:11 -07:00
fix #1151
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user