Commit 6dce0b5d authored by 周健君's avatar 周健君

modify 1024

parent ddb9cf38
No preview for this file type
...@@ -96,9 +96,11 @@ func (cp *CmdParser) initial() { ...@@ -96,9 +96,11 @@ func (cp *CmdParser) initial() {
} }
cp.lock.Lock() cp.lock.Lock()
cp.currentLength += len(line) cp.currentLength += len(line)
if cp.currentLength < cp.maxLength {
cp.currentLines = append(cp.currentLines, line) cp.currentLines = append(cp.currentLines, line)
}
// if cp.currentLength < cp.maxLength {
// cp.currentLines = append(cp.currentLines, line)
// }
cp.lock.Unlock() cp.lock.Unlock()
} }
}() }()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment