Skip to content

Commit

Permalink
empty lines hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hypersleep committed Jul 25, 2016
1 parent bd8c3b5 commit a1c0dae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type(
func (torchfile Torchfile) stdReader(r *bufio.Reader) {
for {
line, err := r.ReadBytes('\n')
if err != nil && err.Error() == "EOF" {
if err != nil {
torchfile.eof <- struct{}{}
return
}
Expand All @@ -75,7 +75,7 @@ func (torchfile Torchfile) exec(args []string) {
}

stdReader := io.MultiReader(stdout, stderr)
r := bufio.NewReaderSize(stdReader, 4096)
r := bufio.NewReaderSize(stdReader, 8192)
torchfile.eof = make(chan struct{})

go torchfile.stdReader(r)
Expand Down

0 comments on commit a1c0dae

Please sign in to comment.