Skip to content
Snippets Groups Projects
Commit e8339e7d authored by Jonathan Boulle's avatar Jonathan Boulle Committed by GitHub
Browse files

Merge pull request #174 from yifan-gu/fix_follow

sdjournal: Break the loop if error happens during Write().
parents 6dc8b843 33ad232a
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,9 @@ process:
return ErrExpired
default:
if c > 0 {
writer.Write(msg[:c])
if err = writer.Write(msg[:c]); err != nil {
break process
}
continue process
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment