diff options
author | Yorhel <git@yorhel.nl> | 2012-04-15 18:01:18 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2012-04-15 18:01:18 +0200 |
commit | cabc8eaa43e315210fea275c9346f9fb2d419945 (patch) | |
tree | 27ba23109e5e3e2a60d7f60bdfd19235ce6f5ed4 | |
parent | 11644bfbf662601f7f2a51e9cb23a90a644564b0 (diff) |
Aargh, I fixed this before committing the previous commit, but in the
wrong repo! *sigh*
-rw-r--r-- | wr.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ func (w *Writer) Write(b []byte) (int, error) { func (w *Writer) flusher() { w.lock.Lock() defer w.lock.Unlock() - for len(buf) > 0 { + for len(w.buf) > 0 { buf := w.buf size := len(buf) // Don't give too many data to a single Write(), otherwise it |