forked from External/ergo
allow blank lines from the client
This commit is contained in:
parent
a894e3f37f
commit
cd4503be31
1 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ func (socket *Socket) readLines() {
|
||||||
}
|
}
|
||||||
|
|
||||||
line = strings.TrimSpace(line)
|
line = strings.TrimSpace(line)
|
||||||
|
if len(line) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
if DEBUG_NET {
|
if DEBUG_NET {
|
||||||
log.Printf("%s → %s", socket, line)
|
log.Printf("%s → %s", socket, line)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue