mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1151
This commit is contained in:
parent
4cadb7ad58
commit
a4f9e08a85
11 changed files with 45 additions and 6 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue