We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05d0564 + 3464573 commit 987ed38Copy full SHA for 987ed38
1 file changed
uploader.go
@@ -42,6 +42,7 @@ func (u *Uploader) Offset() int64 {
42
43
// Upload uploads the entire body to the server.
44
func (u *Uploader) Upload() error {
45
+ defer close(u.notifyChan)
46
for u.offset < u.upload.size && !u.aborted {
47
err := u.UploadChunck()
48
0 commit comments