summaryrefslogtreecommitdiff
path: root/lgc/upload.go
diff options
context:
space:
mode:
Diffstat (limited to 'lgc/upload.go')
-rw-r--r--lgc/upload.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lgc/upload.go b/lgc/upload.go
index f0c772e..5175fe0 100644
--- a/lgc/upload.go
+++ b/lgc/upload.go
@@ -100,7 +100,7 @@ func (s *syntheticCountingReader) Read(p []byte) (n int, err error) {
if s.ctx.Err() != nil {
return 0, io.EOF
}
- if n == 0 {
+ if *s.n == 0 {
s.lgu.statusLock.Lock()
s.lgu.status = LGC_STATUS_RUNNING
s.lgu.statusWaiter.Broadcast()