commit | 8cfdea23d9fffe0e42141cdd0c424bdba8ea4ee4 | [log] [tgz] |
---|---|---|
author | Oliver, Jonathan <git@jonathanoliver.com> | Tue Jun 03 16:24:09 2014 -0600 |
committer | Oliver, Jonathan <git@jonathanoliver.com> | Tue Jun 03 16:24:09 2014 -0600 |
tree | 6798a89ca1866f96498557394089b6f36e8d957d | |
parent | 94a49ea19ad77baba9586fdab729be3da98ea257 [diff] |
Fixed bug in SharedWriter.
diff --git a/shared_writer.go b/shared_writer.go index aa8b4e2..b4a280e 100644 --- a/shared_writer.go +++ b/shared_writer.go
@@ -29,7 +29,7 @@ previous := this.written.Load() upper := previous + count - if previous-this.capacity > this.gate.Load() { + for upper-this.capacity > this.gate.Load() { this.gate.Store(this.upstream.Read(0)) }