We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c426214 commit 837631fCopy full SHA for 837631f
internal/applog/data_listener.go
@@ -47,19 +47,19 @@ func (l *DataListener) handleConnection(conn net.Conn) {
47
48
for {
49
buf, err := line.ReadOne(reader, true)
50
- if err != nil {
51
- if err != io.EOF {
52
- l.errorChan <- err
53
- }
54
-
55
- break
+ if len(buf) > 0 {
+ _, _ = l.writer.Write(l.normalizeLine(buf))
56
}
57
58
- if len(buf) == 0 {
+ if err == nil {
59
continue
60
61
62
- _, _ = l.writer.Write(l.normalizeLine(buf))
+ if err != io.EOF {
+ l.errorChan <- err
+ }
+
+ break
63
64
65
0 commit comments